diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2011-08-17 17:18:58 -0400 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2011-08-17 17:18:58 -0400 |
commit | 130a29e78666def3b477056978406ea2fbcdad2b (patch) | |
tree | 900a2cb25946d11db441b500886e7c174aaf010d | |
parent | 8537a740cdbf0eec8fea0fe3faf44d80e9c68773 (diff) | |
download | jquery-130a29e78666def3b477056978406ea2fbcdad2b.tar.gz jquery-130a29e78666def3b477056978406ea2fbcdad2b.zip |
Landing pull request 459. Do not allow assumed cache[id] in jQuery.data. Fixes #8235.
More Details:
- https://github.com/jquery/jquery/pull/459
- http://bugs.jquery.com/ticket/8235
-rw-r--r-- | src/data.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data.js b/src/data.js index 279471075..4f87a3550 100644 --- a/src/data.js +++ b/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; } |