mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
draggable: fixed createHelper method (thanks Nate!)
This commit is contained in:
parent
77f717d830
commit
79d25190cd
@ -28,7 +28,7 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
createHelper: function() {
|
createHelper: function(e) {
|
||||||
|
|
||||||
var o = this.options;
|
var o = this.options;
|
||||||
var helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [e])) : (o.helper == 'clone' ? this.element.clone() : this.element);
|
var helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [e])) : (o.helper == 'clone' ? this.element.clone() : this.element);
|
||||||
@ -76,7 +76,7 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
|
|||||||
var o = this.options;
|
var o = this.options;
|
||||||
|
|
||||||
//Create and append the visible helper
|
//Create and append the visible helper
|
||||||
this.helper = this.createHelper();
|
this.helper = this.createHelper(e);
|
||||||
|
|
||||||
//If ddmanager is used for droppables, set the global draggable
|
//If ddmanager is used for droppables, set the global draggable
|
||||||
if($.ui.ddmanager)
|
if($.ui.ddmanager)
|
||||||
|
Loading…
Reference in New Issue
Block a user