diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-10-17 12:50:12 -0400 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2012-10-17 12:52:12 -0400 |
commit | 16d996ba0c150101632cef140116b7f68da162f8 (patch) | |
tree | 81dc420726022f5a34477d7a9e7fb582881a43af /src/traversing.js | |
parent | 3bfd15878442ed97a7c768a09ccd51571d4e1d47 (diff) | |
download | jquery-16d996ba0c150101632cef140116b7f68da162f8.tar.gz jquery-16d996ba0c150101632cef140116b7f68da162f8.zip |
no ticket: remove and enforce unused vars in jshint
Diffstat (limited to 'src/traversing.js')
-rw-r--r-- | src/traversing.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/traversing.js b/src/traversing.js index 365bb2947..3e04bf4fb 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -271,7 +271,7 @@ function winnow( elements, qualifier, keep ) { }); } else if ( qualifier.nodeType ) { - return jQuery.grep(elements, function( elem, i ) { + return jQuery.grep(elements, function( elem ) { return ( elem === qualifier ) === keep; }); @@ -287,7 +287,7 @@ function winnow( elements, qualifier, keep ) { } } - return jQuery.grep(elements, function( elem, i ) { + return jQuery.grep(elements, function( elem ) { return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep; }); } |