]> source.dussan.org Git - jquery.git/commitdiff
Remove unnecessary else
authorTimmy Willison <timmywillisn@gmail.com>
Wed, 25 Jul 2012 20:09:30 +0000 (16:09 -0400)
committerTimmy Willison <timmywillisn@gmail.com>
Wed, 25 Jul 2012 20:09:30 +0000 (16:09 -0400)
src/traversing.js

index baac0399e9e885b61890cb6a6dd98ae0edd33c95..8685ae017f767a0e1ccd53e83664012880a117e9 100644 (file)
@@ -96,10 +96,8 @@ jQuery.fn.extend({
                                if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
                                        ret.push( cur );
                                        break;
-
-                               } else {
-                                       cur = cur.parentNode;
                                }
+                               cur = cur.parentNode;
                        }
                }