Standardize on a.indexOf(b) === -1, per @gibson042 review notes

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
Rick Waldron 2013-02-03 18:04:53 -05:00
parent 7b50c4a711
commit f50680898b

View File

@ -135,7 +135,7 @@ Data.prototype = {
discard: function( owner ) { discard: function( owner ) {
var index = Data.index( this.owners, owner ); var index = Data.index( this.owners, owner );
if ( index >= 0 ) { if ( index !== -1 ) {
this.owners.splice( index, 1 ); this.owners.splice( index, 1 );
this.cache.splice( index, 1 ); this.cache.splice( index, 1 );
} }