Make jQuery.winnow a local function

This commit is contained in:
Yehuda Katz 2009-09-15 00:35:35 +00:00
parent 321267dcec
commit 9b20eb4c85

View file

@ -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 ) {