]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Removed unneeded parens.
authorScott González <scott.gonzalez@gmail.com>
Thu, 5 Jun 2008 12:29:38 +0000 (12:29 +0000)
committerScott González <scott.gonzalez@gmail.com>
Thu, 5 Jun 2008 12:29:38 +0000 (12:29 +0000)
ui/source/ui.dialog.js

index 757de50429076b21736ecb44c871ef5d1f59b282..a1496dbdc1cc8e68b4bc3e5b6696de0555947565 100644 (file)
@@ -197,11 +197,11 @@ $.widget("ui.dialog", {
                                        pLeft += 0;
                                        break;
                                case 'right':
-                                       pLeft += (wnd.width()) - (this.uiDialog.width());
+                                       pLeft += wnd.width() - this.uiDialog.width();
                                        break;
                                default:
                                case 'center':
-                                       pLeft += (wnd.width() / 2) - (this.uiDialog.width() / 2);
+                                       pLeft += (wnd.width() - this.uiDialog.width()) / 2;
                        }
                }
                if (pos[1].constructor == Number) {
@@ -212,11 +212,11 @@ $.widget("ui.dialog", {
                                        pTop += 0;
                                        break;
                                case 'bottom':
-                                       pTop += (wnd.height()) - (this.uiDialog.height());
+                                       pTop += wnd.height() - this.uiDialog.height();
                                        break;
                                default:
                                case 'middle':
-                                       pTop += (wnd.height() / 2) - (this.uiDialog.height() / 2);
+                                       pTop += (wnd.height() - this.uiDialog.height()) / 2;
                        }
                }