]> source.dussan.org Git - jquery-ui.git/commitdiff
Widget: Use parentWindow if defaultView doesn't exist.
authorScott González <scott.gonzalez@gmail.com>
Fri, 21 Oct 2011 13:26:07 +0000 (09:26 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 21 Oct 2011 13:26:07 +0000 (09:26 -0400)
Thanks ronchalant

ui/jquery.ui.widget.js

index 4b4d41fb1068a61d23d1116f06c9c5c541810268..578d330ba336496d6c11bb681133a739f5bc4083 100644 (file)
@@ -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();