Skip to content

Commit 1409347

Browse files
committed
Dialog: Have _makeResizable look at options instead of passing handles.
1 parent 3dd7ba7 commit 1409347

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/jquery.ui.dialog.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,10 @@ $.widget("ui.dialog", {
433433
},
434434

435435
// TODO why are handles passed by _setOption??
436-
_makeResizable: function( handles ) {
437-
handles = (handles === undefined ? this.options.resizable : handles);
436+
_makeResizable: function() {
438437
var that = this,
439438
options = this.options,
439+
handles = options.resizable,
440440
// .ui-resizable has position: relative defined in the stylesheet
441441
// but dialogs have to use absolute or fixed positioning
442442
position = this.uiDialog.css( "position" ),
@@ -623,7 +623,7 @@ $.widget("ui.dialog", {
623623

624624
// currently non-resizable, becoming resizable
625625
if ( !isResizable && value !== false ) {
626-
this._makeResizable( value );
626+
this._makeResizable();
627627
}
628628
}
629629

0 commit comments

Comments
 (0)