We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64630ea commit fd43865Copy full SHA for fd43865
src/data.js
@@ -130,10 +130,7 @@ Data.prototype = {
130
hasData: function( owner ) {
131
var index = Data.index( this.owners, owner );
132
133
- if ( index > -1 ) {
134
- return !jQuery.isEmptyObject( this.cache[ index ] );
135
- }
136
- return false;
+ return index !== -1 && jQuery.isEmptyObject( this.cache[ index ] );
137
},
138
discard: function( owner ) {
139
0 commit comments