From 0f14c53d7217ad65c5dfbb043c96f2683a563540 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Wed, 25 Jul 2012 16:09:30 -0400 Subject: [PATCH] Remove unnecessary else --- src/traversing.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } } -- 2.39.5