mirror of
https://github.com/jquery/jquery.git
synced 2026-01-26 04:49:04 -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 ) {
|
hasData: function( owner ) {
|
||||||
var index = Data.index( this.owners, owner );
|
var index = Data.index( this.owners, owner );
|
||||||
|
|
||||||
if ( index > -1 ) {
|
return index !== -1 && jQuery.isEmptyObject( this.cache[ index ] );
|
||||||
return !jQuery.isEmptyObject( this.cache[ index ] );
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
},
|
},
|
||||||
discard: function( owner ) {
|
discard: function( owner ) {
|
||||||
var index = Data.index( this.owners, owner );
|
var index = Data.index( this.owners, owner );
|
||||||
|
|||||||
Reference in New Issue
Block a user