Commit 130a29e7 authored by Rick Waldron's avatar Rick Waldron Committed by timmywil

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
parent 8537a740
...@@ -51,7 +51,7 @@ jQuery.extend({ ...@@ -51,7 +51,7 @@ jQuery.extend({
// Avoid doing any more work than we need to when trying to get data on an // Avoid doing any more work than we need to when trying to get data on an
// object that has no data at all // 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; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment