ractive.once()
Subscribe to an event for a single firing. This is a convenience function on top of ractive.on().
ractive.once( 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 event. Returningfalsefrom the handler will stop propagation and prevent default of DOM events and cancel event bubbling.