Skip to content

Commit 615127e

Browse files
committed
Resizable: Fixed #4093: Removed disableSelection option.
1 parent 625d216 commit 615127e

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

tests/unit/resizable/resizable_defaults.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ var resizable_defaults = {
1313
containment: false,
1414
delay: 0,
1515
disabled: false,
16-
disableSelection: true,
1716
distance: 1,
1817
ghost: false,
1918
grid: false,

ui/ui.resizable.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,8 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
137137
//TODO: make renderAxis a prototype function
138138
this._renderAxis(this.element);
139139

140-
this._handles = $('.ui-resizable-handle', this.element);
141-
142-
if (o.disableSelection)
143-
this._handles.disableSelection();
140+
this._handles = $('.ui-resizable-handle', this.element)
141+
.disableSelection();
144142

145143
//Matching axis name
146144
this._handles.mouseover(function() {
@@ -438,10 +436,9 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
438436
zIndex: ++o.zIndex //TODO: Don't modify option
439437
});
440438

441-
this.helper.appendTo("body");
442-
443-
if (o.disableSelection)
444-
this.helper.disableSelection();
439+
this.helper
440+
.appendTo("body")
441+
.disableSelection();
445442

446443
} else {
447444
this.helper = this.element;
@@ -512,7 +509,6 @@ $.extend($.ui.resizable, {
512509
cancel: ":input,option",
513510
containment: false,
514511
delay: 0,
515-
disableSelection: true,
516512
distance: 1,
517513
ghost: false,
518514
grid: false,

0 commit comments

Comments
 (0)