From b8119bfb95550fdb9014df3a80791024a9923867 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 21 Oct 2014 10:55:01 +0300 Subject: fix test_analyzer after require.js --- scripts/rhizicore.js | 1 + scripts/textanalysis.ui.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index c480e676..9c2d299f 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -1159,5 +1159,6 @@ function expand(obj){ return { expand: expand, graph: graph, + force: force, } }); /* close define call */ diff --git a/scripts/textanalysis.ui.js b/scripts/textanalysis.ui.js index 98d0fe83..0a1e3ece 100644 --- a/scripts/textanalysis.ui.js +++ b/scripts/textanalysis.ui.js @@ -3,7 +3,6 @@ var text = ""; // Last text of sentence var element_name = '#textanalyser'; var element = $(element_name); -// TODO - hide this in a scope function analyzeSentence(sentence, finalize) { var ret = textanalysis.textAnalyser2(sentence, finalize); @@ -60,6 +59,7 @@ function changeType(arg, id) { } return { + analyzeSentence: analyzeSentence, main:function () { if (element.length != 1) { return; -- cgit v1.3.1