r2134 - trunk/ui

r2134 - trunk/ui


Author: scott.gonzalez
Date: Wed Feb 25 17:27:34 2009
New Revision: 2134
Modified:
trunk/ui/ui.dialog.js
Log:
Dialog: Fixed bug where dialogs wouldn't close if there was no animation.
Modified: trunk/ui/ui.dialog.js
==============================================================================
--- trunk/ui/ui.dialog.js    (original)
+++ trunk/ui/ui.dialog.js    Wed Feb 25 17:27:34 2009
@@ -167,7 +167,7 @@
            ? self.uiDialog.hide(self.options.hide, function() {
                self._trigger('close', event);
            })
-            : self._trigger('close', event));
+            : self.uiDialog.hide() && self._trigger('close', event));
        $.ui.dialog.overlay.resize();