Skip to main content

Bug Tracker

Side navigation

#15224 closed bug (notabug)

Opened September 01, 2014 03:58PM UTC

Closed September 01, 2014 09:16PM UTC

Last modified September 07, 2014 09:53PM UTC

triggering CustumEvents

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

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.

Attachments (0)
Change History (2)

Changed September 01, 2014 09:16PM UTC by dmethvin comment:1

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.

http://api.jquery.com/trigger/

Changed September 07, 2014 09:53PM UTC by rwaldron comment:2

#15231 is a duplicate of this ticket.