aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2013-02-03 18:04:53 -0500
committerRick Waldron <waldron.rick@gmail.com>2013-02-03 18:04:53 -0500
commitf50680898b7560d7e53872a221614ce9c576a7d8 (patch)
treeadea608c33993a4798c4b842ea97fdc092c31b7a
parent7b50c4a711ed217767af0956043b901fa89d4671 (diff)
downloadjquery-f50680898b7560d7e53872a221614ce9c576a7d8.tar.gz
jquery-f50680898b7560d7e53872a221614ce9c576a7d8.zip
Standardize on a.indexOf(b) === -1, per @gibson042 review notes
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
-rw-r--r--src/data.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data.js b/src/data.js
index ecae5649f..0b8d71f54 100644
--- a/src/data.js
+++ b/src/data.js
@@ -135,7 +135,7 @@ Data.prototype = {
discard: function( owner ) {
var index = Data.index( this.owners, owner );
- if ( index >= 0 ) {
+ if ( index !== -1 ) {
this.owners.splice( index, 1 );
this.cache.splice( index, 1 );
}