aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-11-15 23:00:47 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-11-26 10:28:22 +0100
commitc8aef203cbb76f8b362da483203381b049c01539 (patch)
tree4375f52ebbcbdbbf3020288a090e572e2892609b /ui
parent16a79c1b9cd31de2c113457c822e06af24fa2b3a (diff)
downloadjquery-ui-c8aef203cbb76f8b362da483203381b049c01539.tar.gz
jquery-ui-c8aef203cbb76f8b362da483203381b049c01539.zip
Dialog: Have _makeResizable look at options instead of passing handles.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.dialog.js6
1 files 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();
}
}