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

This commit is contained in:
Scott González 2011-11-10 07:58:44 -05:00
parent c21a5b4451
commit 1b165148a6

View File

@ -393,6 +393,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 );
args = $.isArray( data ) ?