module:BaseEvent

Base event class

Constructor

new module:BaseEvent(name, target, eventopt)

BaseEvent constructor

Parameters:
NameTypeAttributesDescription
nameString

Name of the event

targetEventEmitter

Component concerned by the event

eventUIEvent<optional>

Original HTML event

Methods

getModifier() → {null}

Get the event modifier (should be overridden by child classes)

Returns:
Type: 
null

prevent() → {BaseEvent}

Prevent the initial event default behavior

Returns:

Itself

Type: 
BaseEvent

stop() → {BaseEvent}

Mark this event as stopped

Returns:

Itself

Type: 
BaseEvent