mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Standardize on a.indexOf(b) === -1, per @gibson042 review notes
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
parent
7b50c4a711
commit
f50680898b
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user