mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Resizable: Fixed #4093: Removed disableSelection option.
This commit is contained in:
parent
625d216d7d
commit
615127e8c5
@ -13,7 +13,6 @@ var resizable_defaults = {
|
||||
containment: false,
|
||||
delay: 0,
|
||||
disabled: false,
|
||||
disableSelection: true,
|
||||
distance: 1,
|
||||
ghost: false,
|
||||
grid: false,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user