]> source.dussan.org Git - jquery.git/commitdiff
Ref fd43865c: restore correct logic
authorRichard Gibson <richard.gibson@gmail.com>
Mon, 4 Feb 2013 14:35:29 +0000 (09:35 -0500)
committerRichard Gibson <richard.gibson@gmail.com>
Mon, 4 Feb 2013 14:35:33 +0000 (09:35 -0500)
src/data.js

index edd6addbee6c1d88465ac51948e97a7d5f9040fd..59ca5f8ae04ba9fb5713fd0494e703131fe460bb 100644 (file)
@@ -131,7 +131,7 @@ Data.prototype = {
        hasData: function( owner ) {
                var index = Data.index( this.owners, owner );
 
-               return index !== -1 && jQuery.isEmptyObject( this.cache[ index ] );
+               return index !== -1 && !jQuery.isEmptyObject( this.cache[ index ] );
        },
        discard: function( owner ) {
                var index = Data.index( this.owners, owner );