Skip to content
Permalink
Browse files

Ensure cache[id] exists before attempting to delete it. Fixes #10080

  • Loading branch information...
rwaldron committed Aug 17, 2011
1 parent 1a738cb commit f44d5e1e815ce63b58264b2f9a764c0b03101cfc
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/data.js
@@ -191,7 +191,8 @@ jQuery.extend({
// Browsers that fail expando deletion also refuse to delete expandos on
// the window, but it will allow it on all other JS objects; other browsers
// don't care
if ( jQuery.support.deleteExpando || cache != window ) {
// Ensure that this id actually exists in `cache` #10080
if ( cache[ id ] && ( jQuery.support.deleteExpando || cache != window ) ) {
delete cache[ id ];
} else {
cache[ id ] = null;

0 comments on commit f44d5e1

Please sign in to comment.
You can’t perform that action at this time.