Sha256: b87e4eb621d333f0b8c46fe15d0363d7c1eddc11ff60c3dba9365626680b97a3

Contents?: true

Size: 537 Bytes

Versions: 7

Compression:

Stored size: 537 Bytes

Contents

DS.Store.reopen({
  loadAll: function(type, data) {
    var array = DS.ModelArray.create({ type: type, content: Em.A([]), store: this });
    this.registerModelArray(array, type);

    this.loadArray(type, data);

    return array;
  },

  loadArray: function(type, array) {
    // TODO: Why is it necessary to build a separate array of ids? Perhaps this logic could be included in loadMany()?
    var ids = [];
    for (var i = 0; i < array.length; i++) {
      ids.push(array[i].id);
    }
    this.loadMany(type, ids, array);
  }
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rightnow_oms-0.1.6 app/assets/javascripts/rightnow_oms/lib/ember/data/extensions.js
rightnow_oms-0.1.4 app/assets/javascripts/rightnow_oms/lib/ember/data/extensions.js
rightnow_oms-0.1.3 app/assets/javascripts/rightnow_oms/lib/ember/data/extensions.js
rightnow_oms-0.1.2 app/assets/javascripts/rightnow_oms/lib/ember/data/extensions.js
rightnow_oms-0.1.1 app/assets/javascripts/rightnow_oms/lib/ember/data/extensions.js
rightnow_oms-0.0.4 app/assets/javascripts/rightnow_oms/lib/ember/data/extensions.js
rightnow_oms-0.0.3 app/assets/javascripts/rightnow_oms/lib/ember/data/extensions.js