Widget: Set event.target in ._trigger(). Fixes #7852 - Droppable event target changes under jQuery 1.7.

(cherry picked from commit 1b165148a6)
This commit is contained in:
Scott González 2011-11-10 07:58:44 -05:00
parent 6f6e2ded1a
commit aa4e8ab3fb

View File

@ -257,6 +257,10 @@ $.Widget.prototype = {
}
}
// the original event may come from any element
// so we need to reset the target on the new event
event.target = this.element[0];
this.element.trigger( event, data );
return !( $.isFunction(callback) &&