From e893cf18cd13d7ceaf6d601faf476b50a20cae8f Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 19 Aug 2014 19:08:42 +0300 Subject: textanalysis: move two globals into textanalysis, only used by this function and reset early --- scripts/textanalysis.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts') 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; -- cgit v1.3.1