Skip to content
Permalink
Browse files

draggable: fixed createHelper method (thanks Nate!)

  • Loading branch information...
Paul Bakaus
Paul Bakaus committed Oct 14, 2008
1 parent 77f717d commit 79d25190cd08381d081fca876cd8aeeb3eb7670a
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/ui.draggable.js
@@ -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)

0 comments on commit 79d2519

Please sign in to comment.
You can’t perform that action at this time.