Crafty.uniqueBind()

public Function uniqueBind(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 prevents a callback from being bound multiple times.

See Also