summaryrefslogtreecommitdiff
path: root/scripts/textanalysis.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-08-19 19:08:42 +0300
committerAlon Levy <alon@pobox.com>2014-08-19 19:08:42 +0300
commite893cf18cd13d7ceaf6d601faf476b50a20cae8f (patch)
treefac3db9d19e40db309181ebe7bcea5ef14f90033 /scripts/textanalysis.js
parentfce7d7b7f8ee8a72537cc2ec8cd4acb16301cd95 (diff)
textanalysis: move two globals into textanalysis, only used by this function and reset early
Diffstat (limited to 'scripts/textanalysis.js')
-rw-r--r--scripts/textanalysis.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js
index 822e58aa..e055d860 100644
--- a/scripts/textanalysis.js
+++ b/scripts/textanalysis.js
@@ -6,7 +6,6 @@ var typeindex = 0;
var nodetypes = ["person", "project", "skill", "deliverable", "objective"];
var suggestionChange=false;
var sentenceStack = [];
-var nodeindex, linkindex;
var typeStack = [];
var ExecutionStack = [];
@@ -133,8 +132,8 @@ function TextAnalyser2(newtext, finalize) {
sentence = [];
var newlinks = [];
var newnodes = [];
- linkindex = 0;
- nodeindex = 0;
+ var linkindex = 0;
+ var nodeindex = 0;
var orderStack = [];
var quoteword = "";
var ANDcase = false;