diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-09-15 00:35:35 +0000 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-09-15 00:35:35 +0000 |
commit | 9b20eb4c85edb156d365e7e376faeef5c741e8fd (patch) | |
tree | 6a2398556ef64a9bb94959b1934e27b7215e2f50 /src | |
parent | 321267dcecdd812090368bf5bd646b3ddfdb4459 (diff) | |
download | jquery-9b20eb4c85edb156d365e7e376faeef5c741e8fd.tar.gz jquery-9b20eb4c85edb156d365e7e376faeef5c741e8fd.zip |
Make jQuery.winnow a local function
Diffstat (limited to 'src')
-rw-r--r-- | src/traversing.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/traversing.js b/src/traversing.js index 1342c5959..0e379c72b 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -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 ) { |