diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-10-14 10:15:48 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-10-14 10:15:48 +0000 |
commit | 79d25190cd08381d081fca876cd8aeeb3eb7670a (patch) | |
tree | b57bb6c8014130e79e66d80063dc159396c7ffb9 | |
parent | 77f717d83083e65684e392635268cbf83dbbee00 (diff) | |
download | jquery-ui-79d25190cd08381d081fca876cd8aeeb3eb7670a.tar.gz jquery-ui-79d25190cd08381d081fca876cd8aeeb3eb7670a.zip |
draggable: fixed createHelper method (thanks Nate!)
-rw-r--r-- | ui/ui.draggable.js | 4 |
1 files changed, 2 insertions, 2 deletions
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) |