We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a738cb commit f44d5e1Copy full SHA for f44d5e1
src/data.js
@@ -191,7 +191,8 @@ jQuery.extend({
191
// Browsers that fail expando deletion also refuse to delete expandos on
192
// the window, but it will allow it on all other JS objects; other browsers
193
// don't care
194
- if ( jQuery.support.deleteExpando || cache != window ) {
+ // Ensure that this id actually exists in `cache` #10080
195
+ if ( cache[ id ] && ( jQuery.support.deleteExpando || cache != window ) ) {
196
delete cache[ id ];
197
} else {
198
cache[ id ] = null;
0 commit comments