once()

/**
 * @param  {String} event name
 * @param  {Function} callback
 * @return {Void}
 */
once(eventName, callback)

Adds a custom event listener to an instance that will be removed after being fired.


Example

Last updated