Draggable: Partial fix for #3726: Using this._trigger() instead of this.element.triggerHandler().

This commit is contained in:
Scott González 2009-01-03 05:42:21 +00:00
parent 8b9312a064
commit f65478c620

View File

@ -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: {},