Skip to content
Permalink
Browse files

jquery selector: removed needless check in jQuery.sibling.

  • Loading branch information
flesler committed May 2, 2008
1 parent ec06b72 commit 42161a1e346941d6b17d099a580a29e3d8d39c62
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/selector.js
@@ -441,7 +441,7 @@ jQuery.extend({
var r = [];

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

0 comments on commit 42161a1

Please sign in to comment.
You can’t perform that action at this time.