Skip to content

Commit ab5992e

Browse files
todorprtimmywil
authored andcommitted
CSS: Make sure elem.ownerDocument.defaultView is not null
Fixes jquerygh-2866 Close jquerygh-2867
1 parent 5938a21 commit ab5992e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/css/curCSS.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if ( window.getComputedStyle ) {
1919
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
2020
var view = elem.ownerDocument.defaultView;
2121

22-
if ( !view.opener ) {
22+
if ( !view || !view.opener ) {
2323
view = window;
2424
}
2525

0 commit comments

Comments
 (0)