js/libs/ember-data.js
function() {
    forEach(this.changedRecords, function(record) {
      if (get(record, 'isDeleted')) {
        this._recordWasDeleted(record);
      } else {
        this._recordWasChanged(record);
      }
    }, this);

    this.changedRecords = [];
  }
function() {
    forEach(this.changedRecords, function(record) {
      if (get(record, 'isDeleted')) {
        this._recordWasDeleted(record);
      } else {
        this._recordWasChanged(record);
      }
    }, this);

    this.changedRecords = [];
  }
This method is invoked whenever data is loaded into the store by the
adapter or updated by the adapter, or when a record has changed.

It updates all record arrays that a record belongs to.

To avoid thrashing, it only runs at most once per run loop.

@method updateRecordArrays
@param {Class} type
@param {Number|String} clientId