From f50680898b7560d7e53872a221614ce9c576a7d8 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Sun, 3 Feb 2013 18:04:53 -0500 Subject: [PATCH] Standardize on a.indexOf(b) === -1, per @gibson042 review notes Signed-off-by: Rick Waldron --- src/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } -- 2.39.5