Commit ff365d30 authored by Marian Sollmann's avatar Marian Sollmann Committed by Richard Gibson

Fix #14190: Remove unnecessary assignment in .closest. Close gh-1411.

(cherry picked from commit 346b031af9e3b315ef351a9cc7fee56f930cf346)

Conflicts:

	src/traversing.js
parent 30eee925
...@@ -65,7 +65,7 @@ jQuery.fn.extend({ ...@@ -65,7 +65,7 @@ jQuery.fn.extend({
i = 0, i = 0,
l = this.length, l = this.length,
matched = [], matched = [],
pos = ( rneedsContext.test( selectors ) || typeof selectors !== "string" ) ? pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?
jQuery( selectors, context || this.context ) : jQuery( selectors, context || this.context ) :
0; 0;
...@@ -79,7 +79,7 @@ jQuery.fn.extend({ ...@@ -79,7 +79,7 @@ jQuery.fn.extend({
cur.nodeType === 1 && cur.nodeType === 1 &&
jQuery.find.matchesSelector(cur, selectors)) ) { jQuery.find.matchesSelector(cur, selectors)) ) {
cur = matched.push( cur ); matched.push( cur );
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment