]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Have _makeResizable look at options instead of passing handles.
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 15 Nov 2012 22:00:47 +0000 (23:00 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 26 Nov 2012 09:28:22 +0000 (10:28 +0100)
ui/jquery.ui.dialog.js

index 70d0f300cd640349ad4f91b10bb3d840a9914ad1..4c26728665936af2073e32c432faf66abe8a5682 100644 (file)
@@ -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();
                        }
                }