From: Jörn Zaefferer Date: Thu, 15 Nov 2012 22:00:47 +0000 (+0100) Subject: Dialog: Have _makeResizable look at options instead of passing handles. X-Git-Tag: 1.10.0-beta.1~116 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c8aef203cbb76f8b362da483203381b049c01539;p=jquery-ui.git Dialog: Have _makeResizable look at options instead of passing handles. --- diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 70d0f300c..4c2672866 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -433,10 +433,10 @@ $.widget("ui.dialog", { }, // TODO why are handles passed by _setOption?? - _makeResizable: function( handles ) { - handles = (handles === undefined ? this.options.resizable : handles); + _makeResizable: function() { var that = this, options = this.options, + handles = options.resizable, // .ui-resizable has position: relative defined in the stylesheet // but dialogs have to use absolute or fixed positioning position = this.uiDialog.css( "position" ), @@ -623,7 +623,7 @@ $.widget("ui.dialog", { // currently non-resizable, becoming resizable if ( !isResizable && value !== false ) { - this._makeResizable( value ); + this._makeResizable(); } }