Skip to content

Commit 6625060

Browse files
committed
Widget: Use parentWindow if defaultView doesn't exist.
Thanks ronchalant
1 parent a0856ef commit 6625060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.widget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ $.Widget.prototype = {
196196
$.data( element, this.widgetName, this );
197197
this._bind({ remove: "destroy" });
198198
this.document = $( element.ownerDocument );
199-
this.window = $( this.document[0].defaultView );
199+
this.window = $( this.document[0].defaultView || this.document[0].parentWindow );
200200
}
201201

202202
this._create();

0 commit comments

Comments
 (0)