Permalink
Browse files
Dialog: Moved autoOpen detection to the new _init() method.
- Loading branch information
Showing
with
5 additions
and
1 deletion.
-
+5
−1
ui/jquery.ui.dialog.js
|
|
@@ -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() { |
|
|
|