Skip to content

Commit c7ded8c

Browse files
committed
Dialog: Remove useless tmp vars.
1 parent a75731a commit c7ded8c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

ui/jquery.ui.dialog.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -205,17 +205,13 @@ $.widget("ui.dialog", {
205205
return;
206206
}
207207

208-
// TODO remove useless tmp vars
209-
var options = this.options,
210-
uiDialog = this.uiDialog;
211-
212208
this.opener = $( this.document[ 0 ].activeElement );
213209

214210
this._size();
215-
this._position( options.position );
216-
this.overlay = options.modal ? new $.ui.dialog.overlay( this ) : null;
211+
this._position( this.options.position );
212+
this.overlay = this.options.modal ? new $.ui.dialog.overlay( this ) : null;
217213
this._moveToTop( null, true );
218-
this._show( uiDialog, options.show );
214+
this._show( this.uiDialog, this.options.show );
219215

220216
this._focusTabbable();
221217

0 commit comments

Comments
 (0)