Skip to content

triggerCustomEvent

Mike Byrne edited this page Mar 7, 2018 · 3 revisions

triggerCustomEvent

description

Triggers a custom event

requires

  • nothing

parameters

  • el - required - the node the event is attached to
  • type - required - the type, or name of your event
  • data - optional - any data that lives with your event

returns

  • nothing

example usage:

triggerCustomEvent(document,'session_open',{
  verified:true
});

Clone this wiki locally