create
Object
create
(
that
,
names
)
Create many events.
- Parameters:
-
that <Object>the source of the event -
names <Array<String>>a set of event names (avoid any duplicates)
- Returns:
Object - the created events, indexed by their name
register
void
register
(
proto
,
names
)
Register many events into a prototype.
If
obj is the source of the event, then obj.events has to be
an Object of Events, indexed by their names.
Typically one that has been created by LnkWcb.events.create().
- Parameters:
-
proto <Object>the prototype -
names <Array<String>>a set of event names