Event

Event

# new Event(eventName, callback)

An Event class which stores the event path, callback, creates an id, and can hold a function to remove it from the event holder
Parameters:
Name Type Description
eventName string the name of the event, if path seperated by ':'
callback function the function to call when the event is triggered
Properties
Name Type Description
eventPath Array.<string> array containing the event path
eventName string the name of the event
id number the unique id of this event
removeCallback function callback used to remove the event from the event holder
Source:

Members

# (static) counter

Properties
Name Type Description
counter number increments the counter and returns the value
Source:

Methods

# remove()

removes this event from the event holder
Source:

# toString() → {string}

returns a stringified version of this event
Source:
Returns:
- string representation of this event
Type
string