mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Make jQuery.winnow a local function
This commit is contained in:
parent
321267dcec
commit
9b20eb4c85
@ -1,4 +1,4 @@
|
||||
jQuery.winnow = function( elements, qualifier, keep ) {
|
||||
var winnow = function( elements, qualifier, keep ) {
|
||||
if(jQuery.isFunction( qualifier )) {
|
||||
return jQuery.grep(elements, function(elem, i) {
|
||||
return !!qualifier.call( elem, i ) === keep;
|
||||
@ -44,11 +44,11 @@ jQuery.fn.extend({
|
||||
},
|
||||
|
||||
not: function( selector ) {
|
||||
return this.pushStack( jQuery.winnow(this, selector, false), "not", selector);
|
||||
return this.pushStack( winnow(this, selector, false), "not", selector);
|
||||
},
|
||||
|
||||
filter: function( selector ) {
|
||||
return this.pushStack( jQuery.winnow(this, selector, true), "filter", selector );
|
||||
return this.pushStack( winnow(this, selector, true), "filter", selector );
|
||||
},
|
||||
|
||||
closest: function( selector, context ) {
|
||||
|
Loading…
Reference in New Issue
Block a user