From cf8866993186ac70375e27419456def1be94aa04 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Mon, 8 Oct 2007 21:15:46 +0000 Subject: [PATCH] prototype: Fix missing "var" in selector.js. Closes #9761. --- CHANGELOG | 2 ++ src/selector.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 {