aboutsummaryrefslogtreecommitdiffstats
path: root/src/traversing
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2014-12-31 18:31:27 -0500
committerRichard Gibson <richard.gibson@gmail.com>2015-01-10 23:47:01 -0500
commit53aa87f3bf4284763405f3eb8affff296e55ba4f (patch)
treeaa6731b18465d87fbd0f1b93a33cdb1e59a5d04e /src/traversing
parent4cbf02df84dbcaa44b75a64ed832f7dbff2231dd (diff)
downloadjquery-53aa87f3bf4284763405f3eb8affff296e55ba4f.tar.gz
jquery-53aa87f3bf4284763405f3eb8affff296e55ba4f.zip
Core: Standardize indexOf comparisons
not present: `< 0` present: `> -1` at index: `=== N` Closes gh-1984
Diffstat (limited to 'src/traversing')
-rw-r--r--src/traversing/findFilter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/traversing/findFilter.js b/src/traversing/findFilter.js
index dd70a73f7..840229bff 100644
--- a/src/traversing/findFilter.js
+++ b/src/traversing/findFilter.js
@@ -33,7 +33,7 @@ function winnow( elements, qualifier, not ) {
}
return jQuery.grep( elements, function( elem ) {
- return ( indexOf.call( qualifier, elem ) >= 0 ) !== not;
+ return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
});
}