Skip to content

Commit

Permalink
Make jQuery.winnow a local function
Browse files Browse the repository at this point in the history
  • Loading branch information
wycats committed Sep 15, 2009
1 parent 321267d commit 9b20eb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/traversing.js
@@ -1,4 +1,4 @@
jQuery.winnow = function( elements, qualifier, keep ) { var winnow = function( elements, qualifier, keep ) {
if(jQuery.isFunction( qualifier )) { if(jQuery.isFunction( qualifier )) {
return jQuery.grep(elements, function(elem, i) { return jQuery.grep(elements, function(elem, i) {
return !!qualifier.call( elem, i ) === keep; return !!qualifier.call( elem, i ) === keep;
Expand Down Expand Up @@ -44,11 +44,11 @@ jQuery.fn.extend({
}, },


not: function( selector ) { 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 ) { 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 ) { closest: function( selector, context ) {
Expand Down

0 comments on commit 9b20eb4

Please sign in to comment.