]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Remove useless tmp vars.
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 15 Nov 2012 22:55:15 +0000 (23:55 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 26 Nov 2012 09:28:23 +0000 (10:28 +0100)
ui/jquery.ui.dialog.js

index 51b3eee1f0c8738aa8351258577da49a0d1ef669..4a4c796306a16b2df64a43145e27e69f58faef6a 100644 (file)
@@ -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();