Skip to content

Commit

Permalink
prototype: Remove useless variable in Selector.handlers.child. Closes…
Browse files Browse the repository at this point in the history
… #10006.
  • Loading branch information
tobie committed Nov 15, 2007
1 parent d20cc77 commit c371096
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Remove useless variable in Selector.handlers.child. Closes #10006 [kuriyama]

* Don't redeclare previously declared variables. Closes #10007 [kuriyama]

* For consistency: use Object.isUndefined where possible. [Tobie Langel]
Expand Down
2 changes: 1 addition & 1 deletion src/selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ Object.extend(Selector, {
child: function(nodes) {
var h = Selector.handlers;
for (var i = 0, results = [], node; node = nodes[i]; i++) {
for (var j = 0, children = [], child; child = node.childNodes[j]; j++)
for (var j = 0, child; child = node.childNodes[j]; j++)
if (child.nodeType == 1 && child.tagName != '!') results.push(child);
}
return results;
Expand Down

0 comments on commit c371096

Please sign in to comment.