]> source.dussan.org Git - jquery.git/commitdiff
Standardize on a.indexOf(b) === -1, per @gibson042 review notes
authorRick Waldron <waldron.rick@gmail.com>
Sun, 3 Feb 2013 23:04:53 +0000 (18:04 -0500)
committerRick Waldron <waldron.rick@gmail.com>
Sun, 3 Feb 2013 23:04:53 +0000 (18:04 -0500)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
src/data.js

index ecae5649f4d7ae6b17c4d55379c0e32a42258ec9..0b8d71f54c788c92cb7abec64dec47f2d1972fc1 100644 (file)
@@ -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 );
                }