From 0ae6fc1e02305fcd975225c2527fb0acacb424de Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Thu, 15 Nov 2012 23:55:15 +0100 Subject: [PATCH] Dialog: Remove useless tmp vars. --- ui/jquery.ui.dialog.js | 10 +++------- 1 file 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(); -- 2.39.5