diff options
-rw-r--r-- | src/data.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/data.js b/src/data.js index 054a520f5..ecae5649f 100644 --- a/src/data.js +++ b/src/data.js @@ -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 ); |