public/lib/emberjs/ember.js
function addObject(array, item) {
      var index = indexOf(array, item);
      if (index === -1) { array.push(item); }
    }
function addObject(array, item) {
      var index = indexOf(array, item);
      if (index === -1) { array.push(item); }
    }
function addObject ( array , item ) { var index = indexOf ( array , item ) ; if ( index === - 1 ) { array . push ( item ) ; } }
Adds an object to an array. If the array already includes the object this
method has no effect.

@method addObject
@param {Array} array The array the passed item should be added to
@param {Object} item The item to add to the passed array

@return 'undefined'
Adds an object to an array . If the array already includes the object this method has no effect .