From: Timmy Willison Date: Wed, 25 Jul 2012 20:09:30 +0000 (-0400) Subject: Remove unnecessary else X-Git-Tag: 1.8rc1~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0f14c53d7217ad65c5dfbb043c96f2683a563540;p=jquery.git Remove unnecessary else --- diff --git a/src/traversing.js b/src/traversing.js index baac0399e..8685ae017 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -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; } }