aboutsummaryrefslogtreecommitdiffstats
path: root/src/traversing.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-03-01 21:24:49 -0500
committerjeresig <jeresig@gmail.com>2010-03-01 21:24:49 -0500
commitdcf0fa5048ef2379d551f29ffa29b14ec5ee09d5 (patch)
tree8a1575a43c3f62be0aa768590742246fa950f11b /src/traversing.js
parent8c8f685a911c811e9b998958dd453a6a2b9d5940 (diff)
downloadjquery-dcf0fa5048ef2379d551f29ffa29b14ec5ee09d5.tar.gz
jquery-dcf0fa5048ef2379d551f29ffa29b14ec5ee09d5.zip
More changes to get jQuery in line with JSLint.
Diffstat (limited to 'src/traversing.js')
-rw-r--r--src/traversing.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/traversing.js b/src/traversing.js
index e597e2041..67760450f 100644
--- a/src/traversing.js
+++ b/src/traversing.js
@@ -7,7 +7,8 @@ var runtil = /Until$/,
var winnow = function( elements, qualifier, keep ) {
if ( jQuery.isFunction( qualifier ) ) {
return jQuery.grep(elements, function( elem, i ) {
- return !!qualifier.call( elem, i, elem ) === keep;
+ var retVal = !!qualifier.call( elem, i, elem );
+ return retVal === keep;
});
} else if ( qualifier.nodeType ) {