Skip to content

Commit

Permalink
jquery selector: removed needless check in jQuery.sibling.
Browse files Browse the repository at this point in the history
  • Loading branch information
flesler committed May 2, 2008
1 parent ec06b72 commit 42161a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selector.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ jQuery.extend({
var r = []; var r = [];


for ( ; n; n = n.nextSibling ) { for ( ; n; n = n.nextSibling ) {
if ( n.nodeType == 1 && (!elem || n != elem) ) if ( n.nodeType == 1 && n != elem )
r.push( n ); r.push( n );
} }


Expand Down

0 comments on commit 42161a1

Please sign in to comment.