ui.dialog.js Close method regression

ui.dialog.js Close method regression


Hello,
Revision 2119 of ui.dialog.js caused a regression where the dialog is
still visible in IE after close is called.
uiDialog.hide() is never called if options.hide is not set. In IE this
results in the dialog still being visible.
Here's a patch to fix:
Index: ui.dialog.js
===================================================================
--- ui.dialog.js    (revision 2130)
+++ ui.dialog.js    (working copy)
@@ -163,11 +163,15 @@
        (self.overlay && self.overlay.destroy());
        self.uiDialog.unbind('keypress.ui-dialog');
-        (self.options.hide
-            ? self.uiDialog.hide(self.options.hide, function() {
+        if (self.options.hide) {
+            self.uiDialog.hide(self.options.hide, function() {
                self._trigger('close', event);
-            })
-            : self._trigger('close', event));
+            });
+        }
+        else {
+            self.uiDialog.hide();
+            self._trigger('close', event);
+        }
        $.ui.dialog.overlay.resize();