diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-01-15 22:17:34 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-01-15 22:17:34 +0000 |
commit | 296deed1c2854c9a2403341df9509e2dbd93fb89 (patch) | |
tree | 4aafcfc6c872544fa8526024e0a36e7d539156d9 /ui/jquery.ui.dialog.js | |
parent | 20360688a078d190b6b35e24055dc0513e0cf6db (diff) | |
download | jquery-ui-296deed1c2854c9a2403341df9509e2dbd93fb89.tar.gz jquery-ui-296deed1c2854c9a2403341df9509e2dbd93fb89.zip |
Dialog: Moved autoOpen detection to the new _init() method.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r-- | ui/jquery.ui.dialog.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index c84e10cd0..1632e18cd 100644 --- a/ui/jquery.ui.dialog.js +++ b/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() { |