module:BaseEvent

module:BaseEvent

Base event class

Constructor

# new module:BaseEvent(name, target, eventopt)

BaseEvent constructor

Parameters:
Name Type Attributes Description
name String

Name of the event

target EventEmitter

Component concerned by the event

event UIEvent <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