Commit f5068089 authored by Rick Waldron's avatar Rick Waldron

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

Signed-off-by: 's avatarRick Waldron <waldron.rick@gmail.com>
parent 7b50c4a7
...@@ -135,7 +135,7 @@ Data.prototype = { ...@@ -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 );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment