diff options
| author | Alon Levy <alon@pobox.com> | 2014-10-22 10:08:23 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-10-24 12:44:44 +0300 |
| commit | d1b2b184dd7747b21eb5f69439f2a4dd5c271cf7 (patch) | |
| tree | b143ec922d6a20dd2f59714735a09febbf4f0f7e /scripts/textanalysis.js | |
| parent | 1cda178609e6946b6791fe2dd7c6af7a151f2eb4 (diff) | |
fixes #106
broken by define addition (require.js)
Diffstat (limited to 'scripts/textanalysis.js')
| -rw-r--r-- | scripts/textanalysis.js | 12 |
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? }; }); |
