From: Rick Waldron Date: Sun, 3 Feb 2013 23:04:53 +0000 (-0500) Subject: Standardize on a.indexOf(b) === -1, per @gibson042 review notes X-Git-Tag: 2.0.0b2~40 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f50680898b7560d7e53872a221614ce9c576a7d8;p=jquery.git Standardize on a.indexOf(b) === -1, per @gibson042 review notes Signed-off-by: Rick Waldron --- 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 ); }