]> source.dussan.org Git - jquery.git/commitdiff
jquery selector: removed needless check in jQuery.sibling.
authorAriel Flesler <aflesler@gmail.com>
Fri, 2 May 2008 14:03:02 +0000 (14:03 +0000)
committerAriel Flesler <aflesler@gmail.com>
Fri, 2 May 2008 14:03:02 +0000 (14:03 +0000)
src/selector.js

index bfd8bef1ec76e833592dd970f48861d6a8ae7b4a..294fed0289593392db765904811ac6304fbbc844 100644 (file)
@@ -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 );
                }