From 5bdcacd1f6ad962d813cc7d839a47a44545cfb81 Mon Sep 17 00:00:00 2001 From: Eduardo Lundgren Date: Fri, 19 Sep 2008 15:20:34 +0000 Subject: [PATCH] Fixed #3454 - Sortable .createHelper() bug --- ui/ui.sortable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js index cd4893d36..ac99c6594 100644 --- a/ui/ui.sortable.js +++ b/ui/ui.sortable.js @@ -390,7 +390,7 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, { }, - createHelper: function() { + createHelper: function(e) { var o = this.options; var helper = typeof o.helper == 'function' ? $(o.helper.apply(this.element[0], [e, this.currentItem])) : (o.helper == "original" ? this.currentItem : this.currentItem.clone()); @@ -411,7 +411,7 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, { this.refreshPositions(); //Create and append the visible helper - this.helper = this.createHelper(); + this.helper = this.createHelper(e); /* * - Position generation -