diff options
author | Scott González <scott.gonzalez@gmail.com> | 2008-06-05 12:29:38 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2008-06-05 12:29:38 +0000 |
commit | 1ddfaa0ab0a6f366f511e70e05ca88c1f204e107 (patch) | |
tree | c5d00eb0b30faea81bf52ae194d3ceb2f199af45 | |
parent | 1d7197f719ab7e17bef5737ca0148db7b7cc1ca6 (diff) | |
download | jquery-ui-1ddfaa0ab0a6f366f511e70e05ca88c1f204e107.tar.gz jquery-ui-1ddfaa0ab0a6f366f511e70e05ca88c1f204e107.zip |
Dialog: Removed unneeded parens.
-rw-r--r-- | ui/source/ui.dialog.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/source/ui.dialog.js b/ui/source/ui.dialog.js index 757de5042..a1496dbdc 100644 --- a/ui/source/ui.dialog.js +++ b/ui/source/ui.dialog.js @@ -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; } } |