From 746b81d0fa3905370676e84b16310a0168690e55 Mon Sep 17 00:00:00 2001 From: LV-426 Date: Tue, 11 Nov 2014 01:54:22 +0200 Subject: textanalysis.ui: - clean module header - nod dep change - rename RZ -> rz_core - use non-named module definition --- scripts/textanalysis.ui.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'scripts/textanalysis.ui.js') diff --git a/scripts/textanalysis.ui.js b/scripts/textanalysis.ui.js index a1802272..394e65bc 100644 --- a/scripts/textanalysis.ui.js +++ b/scripts/textanalysis.ui.js @@ -1,7 +1,7 @@ "use strict" -define('textanalysis.ui', ['autocomplete', 'rz_core', 'textanalysis', 'signal', 'consts'], - function(autocomplete, RZ, textanalysis, signal, consts) { +define(['autocomplete', 'rz_core', 'textanalysis', 'signal', 'consts'], +function(autocomplete, rz_core, textanalysis, signal, consts) { var text = ""; // Last text of sentence var element_name = '#textanalyser'; var element = $(element_name); @@ -23,7 +23,7 @@ function analyzeSentence(sentence, finalize) } var backend_commit = false; - ret.applyToGraph(RZ.graph, backend_commit); + ret.applyToGraph(rz_core.graph, backend_commit); if (finalize || sentence.length == 0) { $('.typeselection').css('top', -300); @@ -58,15 +58,15 @@ function changeType(arg) { nodetype = (arg === 'up'? textanalysis.selected_type_next() : textanalysis.selected_type_prev()); if (arg === 'up') { - RZ.graph.editType(id, null, nodetype); + rz_core.graph.editType(id, null, nodetype); $('.typeselection').html('
' + "Chosen Type: " + nodetype + '
'); - RZ.graph.findCoordinates(id, null); + rz_core.graph.findCoordinates(id, null); } else { - RZ.graph.editType(id, null, nodetype); + rz_core.graph.editType(id, null, nodetype); $('.typeselection').html('
' + "Chosen Type: " + nodetype + '
'); - RZ.graph.findCoordinates(id, null); + rz_core.graph.findCoordinates(id, null); } - RZ.graph.update(true); + rz_core.graph.update(true); } return { -- cgit v1.3.1