Commit fd43865c authored by Rick Waldron's avatar Rick Waldron

Reduce hasData per @gibson042 review notes.

Signed-off-by: 's avatarRick Waldron <waldron.rick@gmail.com>
parent 64630eaf
...@@ -130,10 +130,7 @@ Data.prototype = { ...@@ -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 );
......
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