From d1b2b184dd7747b21eb5f69439f2a4dd5c271cf7 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Wed, 22 Oct 2014 10:08:23 +0300 Subject: fixes #106 broken by define addition (require.js) --- scripts/textanalysis.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'scripts/textanalysis.js') diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js index 61e15919..413f5eab 100644 --- a/scripts/textanalysis.js +++ b/scripts/textanalysis.js @@ -401,11 +401,23 @@ var textAnalyser2 = function (newtext, finalize) { return ret; } + return { autocompleteCallback:autocompleteCallback, textAnalyser2:textAnalyser2, autoSuggestAddName:autoSuggestAddName, ANALYSIS_NODE_START:ANALYSIS_NODE_START, ANALYSIS_LINK:ANALYSIS_LINK, + lastnode: function() { return lastnode; }, + typeindex: function() { return typeindex; }, + typeindex_next: function() { + typeindex = (typeindex + 1) % 5; + return typeindex; + }, + typeindex_prev: function() { + typeindex = (typeindex + 4) % 5; + return typeindex; + }, + nodetypes: function() { return nodetypes; } // XXX should be readonly, but returning a copy? }; }); -- cgit v1.3.1