aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-10-21 09:26:07 -0400
committerScott González <scott.gonzalez@gmail.com>2011-10-21 09:26:07 -0400
commit6625060d83056f73d58c636067a511e7e9bdb8f1 (patch)
treee7815512e3996f53a5ecc3b43743305238b6746b /ui
parenta0856efef3c392d413aa6cd9bd084dc601a337c6 (diff)
downloadjquery-ui-6625060d83056f73d58c636067a511e7e9bdb8f1.tar.gz
jquery-ui-6625060d83056f73d58c636067a511e7e9bdb8f1.zip
Widget: Use parentWindow if defaultView doesn't exist.
Thanks ronchalant
Diffstat (limited to 'ui')
-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();