diff options
| author | Alon Levy <alon@pobox.com> | 2014-12-05 23:24:56 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-05 23:24:56 +0200 |
| commit | bcde522ed96dc407aa4b71f6842767fe69a95d50 (patch) | |
| tree | 3636c31d87eeede4a032c2c5a246f53d24efc075 | |
| parent | e58c8b9c431077cf4d57f6e26c500d6dbe2f3930 (diff) | |
accidental inner loop that should have been side by side. Thanks Dor!
| -rw-r--r-- | src/view/completer.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/view/completer.js b/src/view/completer.js index 9b3e7ba3..86f746b0 100644 --- a/src/view/completer.js +++ b/src/view/completer.js @@ -80,10 +80,10 @@ var completer = (function (input_element, dropdown) { // [hash] [cursor] [space/end] completions(text.slice(hash + 1, space)).forEach(function(name) { dropdown.append($('<div>' + name + '</div>')); - dropdown.children().each(function (index, elem) { - elem.onclick = function() { _applySuggestion(index); }; - input_element.focus(); - }); + }); + dropdown.children().each(function (index, elem) { + elem.onclick = function() { _applySuggestion(index); }; + input_element.focus(); }); completion_start = hash + 1; completion_end = space; |
