aboutsummaryrefslogtreecommitdiffstats
path: root/fuzzyMode.js
diff options
context:
space:
mode:
Diffstat (limited to 'fuzzyMode.js')
-rw-r--r--fuzzyMode.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/fuzzyMode.js b/fuzzyMode.js
index 8b817883..1edb18f0 100644
--- a/fuzzyMode.js
+++ b/fuzzyMode.js
@@ -80,9 +80,8 @@ var fuzzyMode = (function() {
},
updateSelection: function() {
- this.completionList.childNodes.forEach(function(child, i) {
- child.className = (i == this.selection) ? 'selected' : '';
- });
+ for (var i = 0; i < this.completionList.children.length; ++i)
+ this.completionList.children[i].className = (i == this.selection) ? 'selected' : '';
},
onKeydown: function(event) {