Skip to content
Permalink
Browse files

Widget: Set event.target in ._trigger(). Fixes #7852 - Droppable even…

…t target changes under jQuery 1.7.
  • Loading branch information...
scottgonzalez committed Nov 10, 2011
1 parent c21a5b4 commit 1b165148a6654f64d572bd4c28ddb2cee5f6a332
Showing with 4 additions and 0 deletions.
  1. +4 −0 ui/jquery.ui.widget.js
@@ -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 ) ?

0 comments on commit 1b16514

Please sign in to comment.
You can’t perform that action at this time.