diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-11-15 23:55:15 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-11-26 10:28:23 +0100 |
commit | 0ae6fc1e02305fcd975225c2527fb0acacb424de (patch) | |
tree | 224d643d566a971b5e2add6dc37aab57734a9a86 /ui | |
parent | 625a111fb913352cd24bbcccef0cb8d023b9e155 (diff) | |
download | jquery-ui-0ae6fc1e02305fcd975225c2527fb0acacb424de.tar.gz jquery-ui-0ae6fc1e02305fcd975225c2527fb0acacb424de.zip |
Dialog: Remove useless tmp vars.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.dialog.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 51b3eee1f..4a4c79630 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -205,17 +205,13 @@ $.widget("ui.dialog", { return; } - // TODO remove useless tmp vars - var options = this.options, - uiDialog = this.uiDialog; - this.opener = $( this.document[ 0 ].activeElement ); this._size(); - this._position( options.position ); - this.overlay = options.modal ? new $.ui.dialog.overlay( this ) : null; + this._position( this.options.position ); + this.overlay = this.options.modal ? new $.ui.dialog.overlay( this ) : null; this._moveToTop( null, true ); - this._show( uiDialog, options.show ); + this._show( this.uiDialog, this.options.show ); this._focusTabbable(); |