From c8c4edc2fd30af8ef4b67d56c3c65974ff25e37e Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 10 Aug 2014 17:30:30 +0300 Subject: more 'use strict' and fallout handling Just defining some variables instead of them becoming properties on the global object Some whitespace fixes too. --- scripts/textanalysis.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scripts/textanalysis.js') diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js index 940683a0..b50fd6d0 100644 --- a/scripts/textanalysis.js +++ b/scripts/textanalysis.js @@ -1,3 +1,5 @@ +"use strict" + var text = ""; var sugg = ["AJAX", "Neo4J", "Rhizi", "Research", "CRI", "SageBionetworks", "Hero.coli", "CSS", "NodeJS", "HTML5", "Angular", "D3", "ProofOfConcept", "Graphs", "CloudComputing", "BigData", "ProblemSolving", "PHP", "Javascript", "BackBone", "Cooperation", "SemanticWeb"]; var typeindex = 0; @@ -58,7 +60,7 @@ $(document).keydown(function(e) { if (e.keyCode == 40) {//DOWN suggestionChange=true; } - + if (e.keyCode == 9) {//TAB return false; } @@ -265,7 +267,7 @@ function TextAnalyser2(newtext, finalize) { //EXTERNAL AND CONNECTION CHECKING var verb = ""; - function ANDconnect(node) { + function ANDconnect(node) { for(var x=0;x