public/lib/emberjs/ember.js
function(name, target, method) {
        if (!method) {
          method = target;
          target = null;
        }

        addListener(this, name, target, method, true);
        return this;
      }
function(name, target, method) {
        if (!method) {
          method = target;
          target = null;
        }

        addListener(this, name, target, method, true);
        return this;
      }
function ( name , target , method ) { if ( ! method ) { method = target ; target = null ; } addListener ( this , name , target , method , true ) ; return this ; }
Subscribes a function to a named event and then cancels the subscription
after the first time the event is triggered. It is good to use ``one`` when
you only care about the first time an event has taken place.

This function takes an optional 2nd argument that will become the "this"
value for the callback. If this argument is passed then the 3rd argument
becomes the function.

@method one
@param {String} name The name of the event
@param {Object} [target] The "this" binding for the callback
@param {Function} method The callback to execute
@return this
Subscribes a function to a named event and then cancels the subscription after the first time the event is triggered . It is good to use one when you only care about the first time an event has taken place .