mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 00:08:17 -05:00
CSS: Make sure elem.ownerDocument.defaultView is not null
Fixes gh-2866 Close gh-2867
This commit is contained in:
committed by
Timmy Willison
parent
1de8346729
commit
35c314827d
@@ -6,7 +6,7 @@ define( function() {
|
||||
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
|
||||
var view = elem.ownerDocument.defaultView;
|
||||
|
||||
if ( !view.opener ) {
|
||||
if ( !view || !view.opener ) {
|
||||
view = window;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user