mirror of
https://github.com/jquery/jquery.git
synced 2024-10-05 11:34:18 +00:00
Reduce hasData per @gibson042 review notes.
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
parent
64630eaf85
commit
fd43865c6d
@ -130,10 +130,7 @@ Data.prototype = {
|
||||
hasData: function( owner ) {
|
||||
var index = Data.index( this.owners, owner );
|
||||
|
||||
if ( index > -1 ) {
|
||||
return !jQuery.isEmptyObject( this.cache[ index ] );
|
||||
}
|
||||
return false;
|
||||
return index !== -1 && jQuery.isEmptyObject( this.cache[ index ] );
|
||||
},
|
||||
discard: function( owner ) {
|
||||
var index = Data.index( this.owners, owner );
|
||||
|
Loading…
Reference in New Issue
Block a user