mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Widget: Use parentWindow if defaultView doesn't exist.
Thanks ronchalant
This commit is contained in:
parent
a0856efef3
commit
6625060d83
2
ui/jquery.ui.widget.js
vendored
2
ui/jquery.ui.widget.js
vendored
@ -196,7 +196,7 @@ $.Widget.prototype = {
|
||||
$.data( element, this.widgetName, this );
|
||||
this._bind({ remove: "destroy" });
|
||||
this.document = $( element.ownerDocument );
|
||||
this.window = $( this.document[0].defaultView );
|
||||
this.window = $( this.document[0].defaultView || this.document[0].parentWindow );
|
||||
}
|
||||
|
||||
this._create();
|
||||
|
Loading…
Reference in New Issue
Block a user