Crafty.one()

public Function one(String eventName, Function callback)
eventName

Name of the event to bind to

callback

Method to execute upon event triggered

[Returns]

callback function which can be used for unbind

Works like Crafty.bind, but will be unbound once the event triggers.

See Also