aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2013-02-04 09:35:29 -0500
committerRichard Gibson <richard.gibson@gmail.com>2013-02-04 09:35:33 -0500
commita5b456edff358092fdcf4ac6460ade3bec183352 (patch)
treef30dae368497773596010932312db89ee69f7b00 /src
parentcf260fe2858fcc6012a0a9cfa4b794d81c6fb9ad (diff)
downloadjquery-a5b456edff358092fdcf4ac6460ade3bec183352.tar.gz
jquery-a5b456edff358092fdcf4ac6460ade3bec183352.zip
Ref fd43865c: restore correct logic
Diffstat (limited to 'src')
-rw-r--r--src/data.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data.js b/src/data.js
index edd6addbe..59ca5f8ae 100644
--- a/src/data.js
+++ b/src/data.js
@@ -131,7 +131,7 @@ Data.prototype = {
hasData: function( owner ) {
var index = Data.index( this.owners, owner );
- return index !== -1 && jQuery.isEmptyObject( this.cache[ index ] );
+ return index !== -1 && !jQuery.isEmptyObject( this.cache[ index ] );
},
discard: function( owner ) {
var index = Data.index( this.owners, owner );