aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.js
diff options
context:
space:
mode:
authorrwldrn <waldron.rick@gmail.com>2011-08-18 10:17:12 -0400
committerrwldrn <waldron.rick@gmail.com>2011-08-18 10:17:12 -0400
commit93beee8ac0c035285ffab63a5c08cf1ac9cf2b2f (patch)
treecda2054106fb3684aa49649fd408d1b2e7168f03 /src/data.js
parentf44d5e1e815ce63b58264b2f9a764c0b03101cfc (diff)
downloadjquery-93beee8ac0c035285ffab63a5c08cf1ac9cf2b2f.tar.gz
jquery-93beee8ac0c035285ffab63a5c08cf1ac9cf2b2f.zip
Test for window inference. Fixes #10080
Diffstat (limited to 'src/data.js')
-rw-r--r--src/data.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data.js b/src/data.js
index 936cd76b8..4914971ea 100644
--- a/src/data.js
+++ b/src/data.js
@@ -191,8 +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
- // Ensure that this id actually exists in `cache` #10080
- if ( cache[ id ] && ( 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;