Widget: Use parentWindow if defaultView doesn't exist.

Thanks ronchalant
This commit is contained in:
Scott González 2011-10-21 09:26:07 -04:00
parent a0856efef3
commit 6625060d83

View 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();