summaryrefslogtreecommitdiff
path: root/scripts/textanalysis.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-10-22 10:08:23 +0300
committerAlon Levy <alon@pobox.com>2014-10-24 12:44:44 +0300
commitd1b2b184dd7747b21eb5f69439f2a4dd5c271cf7 (patch)
treeb143ec922d6a20dd2f59714735a09febbf4f0f7e /scripts/textanalysis.js
parent1cda178609e6946b6791fe2dd7c6af7a151f2eb4 (diff)
fixes #106
broken by define addition (require.js)
Diffstat (limited to 'scripts/textanalysis.js')
-rw-r--r--scripts/textanalysis.js12
1 files changed, 12 insertions, 0 deletions
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?
};
});