Permalink
Browse files

Widget: Use parentWindow if defaultView doesn't exist.

Thanks ronchalant
  • Loading branch information...
scottgonzalez committed Oct 21, 2011
1 parent a0856ef commit 6625060d83056f73d58c636067a511e7e9bdb8f1
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.widget.js
View
@@ -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();

0 comments on commit 6625060

Please sign in to comment.