LnkWcb Framework

LnkWcb  2.5.0

LnkWcb Framework > LnkWcb > LnkWcb.events
Search:
 
Filters

private static Class LnkWcb.events

Event utility functions.

Methods

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


Copyright © 2010 Linkeo.com All rights reserved.