From 99c19d210f4f7024585eb93d80967377c67fa44e Mon Sep 17 00:00:00 2001 From: Niklas Baumstark Date: Wed, 25 Jan 2012 00:30:36 +0100 Subject: fix regression in 10a77d25c3 --- fuzzyMode.js | 5 ++--- 1 file 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) { -- cgit v1.2.3