Dialog: Moved autoOpen detection to the new _init() method.

This commit is contained in:
Scott González 2010-01-15 22:17:34 +00:00
parent 20360688a0
commit 296deed1c2

View File

@ -147,7 +147,11 @@ $.widget("ui.dialog", {
self._isOpen = false;
(options.bgiframe && $.fn.bgiframe && uiDialog.bgiframe());
(options.autoOpen && self.open());
},
_init: function() {
if ( this.options.autoOpen ) {
this.open();
}
},
destroy: function() {