diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-11-11 01:54:22 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-11-11 14:30:10 +0200 |
| commit | 746b81d0fa3905370676e84b16310a0168690e55 (patch) | |
| tree | ec251d3d919273b59b146899e6699901375ed706 /scripts | |
| parent | 461cbc275b7a2eab43f1ded786914137c38feb33 (diff) | |
textanalysis.ui:
- clean module header - nod dep change
- rename RZ -> rz_core
- use non-named module definition
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/textanalysis.ui.js | 16 |
1 files changed, 8 insertions, 8 deletions
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('<table><tr><td style="height:28px"></td></tr><tr><td>' + "Chosen Type: " + nodetype + '</td></tr></table>'); - 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('<table><tr><td style="height:28px"></td></tr><tr><td>' + "Chosen Type: " + nodetype + '</td></tr></table>'); - RZ.graph.findCoordinates(id, null); + rz_core.graph.findCoordinates(id, null); } - RZ.graph.update(true); + rz_core.graph.update(true); } return { |
