aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodor Prikumov <tono_pr@abv.bg>2016-01-26 11:58:34 +0200
committerTimmy Willison <timmywillisn@gmail.com>2016-01-27 11:39:24 -0500
commitab5992e56e5ea645c703343a4bba5f71e27aaf43 (patch)
treebbd83c07b2c47ab4e5368b7be96fd913a2533cf5
parent5938a21466ef84213e41faf8a723844f639e00e3 (diff)
downloadjquery-ab5992e56e5ea645c703343a4bba5f71e27aaf43.tar.gz
jquery-ab5992e56e5ea645c703343a4bba5f71e27aaf43.zip
CSS: Make sure elem.ownerDocument.defaultView is not null
Fixes gh-2866 Close gh-2867
-rw-r--r--src/css/curCSS.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css/curCSS.js b/src/css/curCSS.js
index 67fc27525..8a01e2f74 100644
--- a/src/css/curCSS.js
+++ b/src/css/curCSS.js
@@ -19,7 +19,7 @@ if ( window.getComputedStyle ) {
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
var view = elem.ownerDocument.defaultView;
- if ( !view.opener ) {
+ if ( !view || !view.opener ) {
view = window;
}