Commit a5b456ed authored by Richard Gibson's avatar Richard Gibson

Ref fd43865c: restore correct logic

parent cf260fe2
...@@ -131,7 +131,7 @@ Data.prototype = { ...@@ -131,7 +131,7 @@ Data.prototype = {
hasData: function( owner ) { hasData: function( owner ) {
var index = Data.index( this.owners, 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 ) { discard: function( owner ) {
var index = Data.index( this.owners, owner ); var index = Data.index( this.owners, owner );
......
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