From f65478c620bfea25ce2f80356c8cd66600e2edca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Sat, 3 Jan 2009 05:42:21 +0000 Subject: [PATCH] Draggable: Partial fix for #3726: Using this._trigger() instead of this.element.triggerHandler(). --- ui/ui.draggable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: {},