mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user