Skip to content
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...
1 parent 8537a74 commit 130a29e78666def3b477056978406ea2fbcdad2b @rwaldron rwaldron committed with timmywil Aug 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/data.js
View
2 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.
Something went wrong with that request. Please try again.