function(index, removed, added) {
    // Map the array of record objects into an array of  client ids.
    added = map(added, function(record) {
      Ember.assert("You cannot add '" + record.constructor.typeKey + "' records to this relationship (only '" + this.type.typeKey + "' allowed)", !this.type || record instanceof this.type);
      return record;
    }, this);

    this._super(index, removed, added);
  }
function(index, removed, added) {
    // Map the array of record objects into an array of  client ids.
    added = map(added, function(record) {
      Ember.assert("You cannot add '" + record.constructor.typeKey + "' records to this relationship (only '" + this.type.typeKey + "' allowed)", !this.type || record instanceof this.type);
      return record;
    }, this);

    this._super(index, removed, added);
  }
function ( index , removed , added ) { // Map the array of record objects into an array of  client ids. added = map ( added , function ( record ) { Ember . assert ( "You cannot add '" + record . constructor . typeKey + "' records to this relationship (only '" + this . type . typeKey + "' allowed)" , ! this . type || record instanceof this . type ) ; return record ; } , this ) ; this . _super ( index , removed , added ) ; }
Overrides Ember.Array's replace method to implement
Overrides Ember . Array s replace method to implement