diff options
author | Oleg <markelog@gmail.com> | 2012-11-02 04:36:48 +0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-11-01 21:31:55 -0400 |
commit | f651bf8893ceb585245bfc57ba76d3dcb5d0a3b6 (patch) | |
tree | 64849041a8e650e7ccb82bacc163db1071632af9 /src/traversing.js | |
parent | 240b141a22c4783d619fc67c91f990d1535e7c57 (diff) | |
download | jquery-f651bf8893ceb585245bfc57ba76d3dcb5d0a3b6.tar.gz jquery-f651bf8893ceb585245bfc57ba76d3dcb5d0a3b6.zip |
Follow-up for .selector property removal
Diffstat (limited to 'src/traversing.js')
-rw-r--r-- | src/traversing.js | 7 |
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 |