diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-01-03 05:42:21 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-01-03 05:42:21 +0000 |
commit | f65478c620bfea25ce2f80356c8cd66600e2edca (patch) | |
tree | 408f6506a038516970624ecbbd1179b742373eba /ui/ui.draggable.js | |
parent | 8b9312a064f6fc65b2a08649e0e2383dbf434772 (diff) | |
download | jquery-ui-f65478c620bfea25ce2f80356c8cd66600e2edca.tar.gz jquery-ui-f65478c620bfea25ce2f80356c8cd66600e2edca.zip |
Draggable: Partial fix for #3726: Using this._trigger() instead of this.element.triggerHandler().
Diffstat (limited to 'ui/ui.draggable.js')
-rw-r--r-- | ui/ui.draggable.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js index 8f9d8682e..d31003ee1 100644 --- a/ui/ui.draggable.js +++ b/ui/ui.draggable.js @@ -340,7 +340,8 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, { _propagate: function(n, event) { $.ui.plugin.call(this, n, [event, this._uiHash()]); if(n == "drag") this.positionAbs = this._convertPositionTo("absolute"); //The absolute position has to be recalculated after plugins - return this.element.triggerHandler(n == "drag" ? n : "drag"+n, [event, this._uiHash()], this.options[n]); + this._trigger(n, event, this._uiHash()); + return event.returnValue; }, plugins: {}, |