r798 - trunk/ui

r798 - trunk/ui


Author: paul.bakaus
Date: Tue Oct 14 03:15:48 2008
New Revision: 798
Modified:
trunk/ui/ui.draggable.js
Log:
draggable: fixed createHelper method (thanks Nate!)
Modified: trunk/ui/ui.draggable.js
==============================================================================
--- trunk/ui/ui.draggable.js    (original)
+++ trunk/ui/ui.draggable.js    Tue Oct 14 03:15:48 2008
@@ -28,7 +28,7 @@
        
    },
    
-    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 @@
        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)