Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 1b16514
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/jquery.ui.widget.js
Expand Up @@ -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 ); this.element.trigger( event, data );


args = $.isArray( data ) ? args = $.isArray( data ) ?
Expand Down

0 comments on commit 1b16514

Please sign in to comment.