From 79d25190cd08381d081fca876cd8aeeb3eb7670a Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Tue, 14 Oct 2008 10:15:48 +0000 Subject: draggable: fixed createHelper method (thanks Nate!) --- ui/ui.draggable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/ui.draggable.js') diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js index c830671eb..c82dae461 100644 --- a/ui/ui.draggable.js +++ b/ui/ui.draggable.js @@ -28,7 +28,7 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, { }, - createHelper: function() { + createHelper: function(e) { var o = this.options; 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; //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($.ui.ddmanager) -- cgit v1.2.3