From c8aef203cbb76f8b362da483203381b049c01539 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Thu, 15 Nov 2012 23:00:47 +0100 Subject: [PATCH] Dialog: Have _makeResizable look at options instead of passing handles. --- ui/jquery.ui.dialog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } } -- 2.39.5