aboutsummaryrefslogtreecommitdiffstats
path: root/fuzzyMode.js
diff options
context:
space:
mode:
authorNiklas Baumstark2012-01-25 00:30:36 +0100
committerNiklas Baumstark2012-04-10 23:57:20 +0200
commit99c19d210f4f7024585eb93d80967377c67fa44e (patch)
tree764aa32e629937f59867c6e2cb9b65f02c783e28 /fuzzyMode.js
parent885c6333bc2b73c088f2de0c86ae760e0034491c (diff)
downloadvimium-99c19d210f4f7024585eb93d80967377c67fa44e.tar.bz2
fix regression in 10a77d25c3
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) {