mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
CSS: Make sure elem.ownerDocument.defaultView is not null
Fixes gh-2866 Close gh-2867
This commit is contained in:
parent
5938a21466
commit
ab5992e56e
@ -19,7 +19,7 @@ if ( window.getComputedStyle ) {
|
|||||||
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
|
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
|
||||||
var view = elem.ownerDocument.defaultView;
|
var view = elem.ownerDocument.defaultView;
|
||||||
|
|
||||||
if ( !view.opener ) {
|
if ( !view || !view.opener ) {
|
||||||
view = window;
|
view = window;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user