mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 18:18:05 -05:00
Reduce hasData per @gibson042 review notes.
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user