Bug Tracker

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#15224 closed bug (notabug)

triggering CustumEvents

Reported by: ray007 Owned by:
Priority: undecided Milestone: None
Component: event Version: 2.1.1
Keywords: Cc:
Blocked by: Blocking:


Trying to use .trigger() with a CustomEvent() fails in current firefox because the hasOwn() check used by jQuery to determine the type of the Event fails on the CustomEvent. Google Chrome works fine.

Change History (2)

comment:1 Changed 8 years ago by dmethvin

Component: unfiledevent
Resolution: notabug
Status: newclosed

Since there's no code, I'll assume you tried something like this:

$("div").trigger(new CustomEvent( ... ));

The docs are pretty clear that you should trigger with a jQuery.Event, the CustomEvent isn't even supported across all the jQuery 2.x browsers.


comment:2 Changed 8 years ago by Rick Waldron

#15231 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.