diff options
author | Todor Prikumov <tono_pr@abv.bg> | 2016-01-26 11:58:34 +0200 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2016-01-27 11:39:24 -0500 |
commit | ab5992e56e5ea645c703343a4bba5f71e27aaf43 (patch) | |
tree | bbd83c07b2c47ab4e5368b7be96fd913a2533cf5 | |
parent | 5938a21466ef84213e41faf8a723844f639e00e3 (diff) | |
download | jquery-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.js | 2 |
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; } |