aboutsummaryrefslogtreecommitdiffstats
path: root/src/traversing.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/traversing.js')
-rw-r--r--src/traversing.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/traversing.js b/src/traversing.js
index b50f230ce..75a564f5c 100644
--- a/src/traversing.js
+++ b/src/traversing.js
@@ -31,9 +31,8 @@ jQuery.fn.extend({
}
// Needed because $( selector, context ) becomes $( context ).find( selector )
- ret = this.pushStack( jQuery.unique( ret ) );
ret.selector = ( this.selector ? this.selector + " " : "" ) + selector;
- return ret;
+ return this.pushStack( jQuery.unique( ret ) );
},
has: function( target ) {
@@ -90,9 +89,7 @@ jQuery.fn.extend({
}
}
- ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
-
- return this.pushStack( ret );
+ return this.pushStack( ret.length > 1 ? jQuery.unique( ret ) : ret );
},
// Determine the position of an element within