From a5b456edff358092fdcf4ac6460ade3bec183352 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Mon, 4 Feb 2013 09:35:29 -0500 Subject: [PATCH] Ref fd43865c: restore correct logic --- src/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5