use events

when event handler ( o → )

Attach handler as a listener for event on object o.

after event handler ( o → )

Attach handler as a listener for event on object o, that will be called at most once.

waitfor event ( o → )

Waits for the event to fire on the object o, then pushes the event detail that fired.

Warning: if the event never fires, your code will hang.


back to index

docs@04547c7