]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Fixed bug where dialogs wouldn't close if there was no animation.
authorScott González <scott.gonzalez@gmail.com>
Thu, 26 Feb 2009 01:27:34 +0000 (01:27 +0000)
committerScott González <scott.gonzalez@gmail.com>
Thu, 26 Feb 2009 01:27:34 +0000 (01:27 +0000)
ui/ui.dialog.js

index 02dc79b11d895a3d7a8c192d0279e42d5b26f219..7611db8dbb1106954c2826e7c480e5a3004a4fd5 100644 (file)
@@ -167,7 +167,7 @@ $.widget("ui.dialog", {
                        ? 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();