ractive.on()
edit this pageSubscribe to events.
ractive.on( eventName, handler )
Returns an
Objectwith acancelmethod, which removes the handler.eventName
StringThe name of the event to subscribe to
handler
FunctionThe function that will be called, with
ractiveasthis. The arguments depend on the eventractive.on( obj )
Returns an
Objectwith acancelmethod, which removes all handlers in the passed-inobj.obj
ObjectAn object with keys named for each event to subscribe to. The value at each key is the handler function for that event.