diff options
| author | Alon Levy <alon@pobox.com> | 2014-09-21 16:03:22 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-09-21 16:03:22 +0300 |
| commit | 5e71e6a03a34384a27e583a13dd82b64c229caaa (patch) | |
| tree | e5c59d98c310ca053ba2f1fb65be337b9db432aa /scripts | |
| parent | eef28746e97e7741e955a1c64fd603e154755d9f (diff) | |
textanalysis-ui: spaces before and after assignment and opening curlies
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/textanalysis-ui.js | 10 |
1 files changed, 5 insertions, 5 deletions
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 |
