From 6625060d83056f73d58c636067a511e7e9bdb8f1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Fri, 21 Oct 2011 09:26:07 -0400 Subject: [PATCH] Widget: Use parentWindow if defaultView doesn't exist. Thanks ronchalant --- ui/jquery.ui.widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5