mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Event: Remove fake originalEvent from jQuery.Event.simulate
Fixes gh-2300 Closes gh-2303
This commit is contained in:
committed by
Oleg Gaidarenko
parent
3c92770867
commit
7475d5debe
@@ -610,10 +610,14 @@ jQuery.event = {
|
||||
event,
|
||||
{
|
||||
type: type,
|
||||
isSimulated: true,
|
||||
originalEvent: {}
|
||||
isSimulated: true
|
||||
}
|
||||
);
|
||||
|
||||
// This prevents stopPropagation(), stopImmediatePropagation(), and preventDefault() from
|
||||
// preventing default on the donor event.
|
||||
delete e.originalEvent;
|
||||
|
||||
if ( bubble ) {
|
||||
jQuery.event.trigger( e, null, elem );
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user