aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.widget.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r--ui/jquery.ui.widget.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js
index 4b4d41fb1..578d330ba 100644
--- a/ui/jquery.ui.widget.js
+++ b/ui/jquery.ui.widget.js
@@ -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();