aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.dialog.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-01-15 22:17:34 +0000
committerScott González <scott.gonzalez@gmail.com>2010-01-15 22:17:34 +0000
commit296deed1c2854c9a2403341df9509e2dbd93fb89 (patch)
tree4aafcfc6c872544fa8526024e0a36e7d539156d9 /ui/jquery.ui.dialog.js
parent20360688a078d190b6b35e24055dc0513e0cf6db (diff)
downloadjquery-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.js6
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() {