Skip to content
Permalink
Browse files

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

  • Loading branch information...
scottgonzalez committed Jan 15, 2010
1 parent 2036068 commit 296deed1c2854c9a2403341df9509e2dbd93fb89
Showing with 5 additions and 1 deletion.
  1. +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() {

0 comments on commit 296deed

Please sign in to comment.
You can’t perform that action at this time.