Skip to content

Commit

Permalink
Remove unnecessary else
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed Jul 25, 2012
1 parent 17a26f5 commit 0f14c53
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/traversing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 0f14c53

Please sign in to comment.