aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/traversing.js22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/traversing.js b/src/traversing.js
index aa8c10cc0..0627ab4f0 100644
--- a/src/traversing.js
+++ b/src/traversing.js
@@ -84,28 +84,8 @@ jQuery.fn.extend({
},
closest: function( selectors, context ) {
- var ret = [], i, l, cur = this[0];
+ var ret = [], i, l, cur;
- // Array (deprecated as of jQuery 1.7)
- if ( jQuery.isArray( selectors ) ) {
- var level = 1;
-
- while ( cur && cur.ownerDocument && cur !== context ) {
- for ( i = 0; i < selectors.length; i++ ) {
-
- if ( jQuery( cur ).is( selectors[ i ] ) ) {
- ret.push({ selector: selectors[ i ], elem: cur, level: level });
- }
- }
-
- cur = cur.parentNode;
- level++;
- }
-
- return ret;
- }
-
- // String
var pos = POS.test( selectors ) || typeof selectors !== "string" ?
jQuery( selectors, context || this.context ) :
0;