Skip to content
Permalink
Browse files

Landing pull request 459. Do not allow assumed cache[id] in jQuery.da…

…ta. Fixes #8235.

More Details:
 - #459
 - http://bugs.jquery.com/ticket/8235
  • Loading branch information...
rwaldron authored and timmywil committed Aug 17, 2011
1 parent 8537a74 commit 130a29e78666def3b477056978406ea2fbcdad2b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/data.js
@@ -51,7 +51,7 @@ jQuery.extend({

// Avoid doing any more work than we need to when trying to get data on an
// object that has no data at all
if ( (!id || (pvt && id && !cache[ id ][ internalKey ])) && getByName && data === undefined ) {
if ( (!id || (pvt && id && (cache[ id ] && !cache[ id ][ internalKey ]))) && getByName && data === undefined ) {
return;
}

0 comments on commit 130a29e

Please sign in to comment.
You can’t perform that action at this time.