Skip to content
Permalink
Browse files
Fix #14190: Remove unnecessary assignment in .closest. Close gh-1411.
(cherry picked from commit 346b031af9e3b315ef351a9cc7fee56f930cf346)

Conflicts:

	src/traversing.js
  • Loading branch information
Marian Sollmann authored and gibson042 committed Nov 6, 2013
1 parent 30eee92 commit ff365d3
Showing 1 changed file with 2 additions and 2 deletions.
@@ -65,7 +65,7 @@ jQuery.fn.extend({
i = 0,
l = this.length,
matched = [],
pos = ( rneedsContext.test( selectors ) || typeof selectors !== "string" ) ?
pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?
jQuery( selectors, context || this.context ) :
0;

@@ -79,7 +79,7 @@ jQuery.fn.extend({
cur.nodeType === 1 &&
jQuery.find.matchesSelector(cur, selectors)) ) {

cur = matched.push( cur );
matched.push( cur );
break;
}
}

0 comments on commit ff365d3

Please sign in to comment.