aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.resizable.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-02-09 01:36:51 +0000
committerScott González <scott.gonzalez@gmail.com>2009-02-09 01:36:51 +0000
commit615127e8c562fc2042ff516ed7494241d35d6a66 (patch)
tree6159028acfecd32b8891c90a89762cd158a5b29b /ui/ui.resizable.js
parent625d216d7db6312dacc01ffbc749716f8947b6c5 (diff)
downloadjquery-ui-615127e8c562fc2042ff516ed7494241d35d6a66.tar.gz
jquery-ui-615127e8c562fc2042ff516ed7494241d35d6a66.zip
Resizable: Fixed #4093: Removed disableSelection option.
Diffstat (limited to 'ui/ui.resizable.js')
-rw-r--r--ui/ui.resizable.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js
index 9ccfad4fd..cd250a09a 100644
--- a/ui/ui.resizable.js
+++ b/ui/ui.resizable.js
@@ -137,10 +137,8 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
//TODO: make renderAxis a prototype function
this._renderAxis(this.element);
- this._handles = $('.ui-resizable-handle', this.element);
-
- if (o.disableSelection)
- this._handles.disableSelection();
+ this._handles = $('.ui-resizable-handle', this.element)
+ .disableSelection();
//Matching axis name
this._handles.mouseover(function() {
@@ -438,10 +436,9 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
zIndex: ++o.zIndex //TODO: Don't modify option
});
- this.helper.appendTo("body");
-
- if (o.disableSelection)
- this.helper.disableSelection();
+ this.helper
+ .appendTo("body")
+ .disableSelection();
} else {
this.helper = this.element;
@@ -512,7 +509,6 @@ $.extend($.ui.resizable, {
cancel: ":input,option",
containment: false,
delay: 0,
- disableSelection: true,
distance: 1,
ghost: false,
grid: false,