Ref fd43865c: restore correct logic

This commit is contained in:
Richard Gibson
2013-02-04 09:35:29 -05:00
parent cf260fe285
commit a5b456edff

View 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 );