Skip to content
Permalink
Browse files

Make jQuery.winnow a local function

  • Loading branch information
wycats committed Sep 15, 2009
1 parent 321267d commit 9b20eb4c85edb156d365e7e376faeef5c741e8fd
Showing with 3 additions and 3 deletions.
  1. +3 −3 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 ) {

0 comments on commit 9b20eb4

Please sign in to comment.
You can’t perform that action at this time.