Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove unnecessary else

  • Loading branch information...
commit 0f14c53d7217ad65c5dfbb043c96f2683a563540 1 parent 17a26f5
Timmy Willison timmywil authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/traversing.js
4 src/traversing.js
View
@@ -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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.