one

  • function
 

obj.one( event, handler )

Adds a basic event listener that listens to an event once and only once.

Parameters

  1. event {String}

    The name of the event to listen for.

  2. handler {function()}

    The handler that will be executed to handle the event.

Returns

{Object}

this