From: Jörn Zaefferer Date: Thu, 15 Nov 2012 22:55:15 +0000 (+0100) Subject: Dialog: Remove useless tmp vars. X-Git-Tag: 1.10.0-beta.1~109 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0ae6fc1e02305fcd975225c2527fb0acacb424de;p=jquery-ui.git Dialog: Remove useless tmp vars. --- 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();