prototype: Fix missing "var" in selector.js. Closes #9761.

This commit is contained in:
Sam Stephenson 2007-10-08 21:15:46 +00:00
parent 4b1fb7e03a
commit cf88669931
2 changed files with 3 additions and 1 deletions

View File

@ -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]

View File

@ -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 {