aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-08-25 12:18:40 -0700
committerDave Methvin <dave.methvin@gmail.com>2011-08-25 12:18:40 -0700
commitf4811bfb04206b9d9c120001603eadb1b529c271 (patch)
tree4b5e4dd81f94aa257fe3b14c52fc6dbd7f428de9 /src
parent979dd1cb421a6880463f98842353461a0f1fae6e (diff)
parent93beee8ac0c035285ffab63a5c08cf1ac9cf2b2f (diff)
downloadjquery-f4811bfb04206b9d9c120001603eadb1b529c271.tar.gz
jquery-f4811bfb04206b9d9c120001603eadb1b529c271.zip
Merge pull request #468 from rwldrn/10080
Fixes #10080. Test cache for window inference.
Diffstat (limited to 'src')
-rw-r--r--src/data.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/data.js b/src/data.js
index 4f87a3550..4914971ea 100644
--- a/src/data.js
+++ b/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 `cache` is not a window object #10080
+ if ( jQuery.support.deleteExpando || !cache.setInterval ) {
delete cache[ id ];
} else {
cache[ id ] = null;