From 296deed1c2854c9a2403341df9509e2dbd93fb89 Mon Sep 17 00:00:00 2001 From: Scott González Date: Fri, 15 Jan 2010 22:17:34 +0000 Subject: Dialog: Moved autoOpen detection to the new _init() method. --- ui/jquery.ui.dialog.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ui/jquery.ui.dialog.js') 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() { -- cgit v1.2.3