From 5e71e6a03a34384a27e583a13dd82b64c229caaa Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 21 Sep 2014 16:03:22 +0300 Subject: textanalysis-ui: spaces before and after assignment and opening curlies --- scripts/textanalysis-ui.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scripts/textanalysis-ui.js') diff --git a/scripts/textanalysis-ui.js b/scripts/textanalysis-ui.js index 9b8371f0..66d270d8 100644 --- a/scripts/textanalysis-ui.js +++ b/scripts/textanalysis-ui.js @@ -51,13 +51,13 @@ $("#textanalyser").keypress(function(e) { graph.history.record_keystrokes(KEYSTROKE_WHERE_TEXTANALYSIS, [e.which]); } if (e.which == 13) { - if(!suggestionChange){ + if(!suggestionChange) { text = $('#textanalyser').val(); $('#textanalyser').val(""); analyzeSentence(text, true); - typeStack=[]; + typeStack = []; } else { - suggestionChange=false; + suggestionChange = false; } return false; } @@ -94,10 +94,10 @@ $(document).keydown(function(e) { } if (e.keyCode == 38) {//UP - suggestionChange=true; + suggestionChange = true; } if (e.keyCode == 40) {//DOWN - suggestionChange=true; + suggestionChange = true; } if (e.keyCode == 9) {//TAB -- cgit v1.3.1