mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 01:28:18 -05:00
Ref fd43865c: restore correct logic
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user