diff --git a/CHANGELOG b/CHANGELOG index e560ac9..d61f9eb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fix missing "var" in selector.js. Closes #9761. [Tobie Langel] + * Date#toJSON now returns times in UTC for better compatibility with json.js. Closes #9332. [Tobie Langel] * Ensure document._getElementsByXPath extends the elements it returns; fixes $$ not returning extended elements in Opera 9.2. Closes #8843. [jdalton] diff --git a/src/selector.js b/src/selector.js index 286f334..5a6a495 100644 --- a/src/selector.js +++ b/src/selector.js @@ -308,7 +308,7 @@ Object.extend(Selector, { parentNode._counted = true; if (reverse) { for (var nodes = parentNode.childNodes, i = nodes.length - 1, j = 1; i >= 0; i--) { - node = nodes[i]; + var node = nodes[i]; if (node.nodeType == 1 && (!ofType || node._counted)) node.nodeIndex = j++; } } else {