dist/globals/ember-data.prod.js in ember-data-source-2.10.0.beta.1 vs dist/globals/ember-data.prod.js in ember-data-source-2.10.0.beta.2

- old
+ new

@@ -4,11 +4,11 @@ /*! * @overview Ember Data * @copyright Copyright 2011-2016 Tilde Inc. and contributors. * Portions Copyright 2011 LivingSocial Inc. * @license Licensed under MIT license (see license.js) - * @version 2.10.0-beta.1 + * @version 2.10.0-beta.2 */ var loader, define, requireModule, require, requirejs; (function(global) { @@ -5306,10 +5306,37 @@ Represents an ordered list of records whose order and membership is determined by the adapter. For example, a query sent to the adapter may trigger a search on the server, whose results would be loaded into an instance of the `AdapterPopulatedRecordArray`. + --- + + If you want to update the array and get the latest records from the + adapter, you can invoke [`update()`](#method_update): + + Example + + ```javascript + // GET /users?isAdmin=true + var admins = store.query('user', { isAdmin: true }); + + admins.then(function() { + console.log(admins.get("length")); // 42 + }); + + // somewhere later in the app code, when new admins have been created + // in the meantime + // + // GET /users?isAdmin=true + admins.update().then(function() { + admins.get('isUpdating'); // false + console.log(admins.get("length")); // 123 + }); + + admins.get('isUpdating'); // true + ``` + @class AdapterPopulatedRecordArray @namespace DS @extends DS.RecordArray */ exports.default = _emberDataPrivateSystemRecordArraysRecordArray.default.extend({ @@ -8792,11 +8819,12 @@ ``` Started GET "/api/v1/person?ids%5B%5D=1&ids%5B%5D=2&ids%5B%5D=3" Processing by Api::V1::PersonsController#index as HTML Parameters: { "ids" => ["1", "2", "3"] } ``` - This method returns a promise, which is resolved with a `RecordArray` + This method returns a promise, which is resolved with an + [`AdapterPopulatedRecordArray`](http://emberjs.com/api/data/classes/DS.AdapterPopulatedRecordArray.html) once the server returns. @since 1.13.0 @method query @param {String} modelName @param {any} query an opaque query to be used by the adapter @@ -17254,10 +17282,10 @@ */ deserialize: null }); }); define("ember-data/version", ["exports"], function (exports) { - exports.default = "2.10.0-beta.1"; + exports.default = "2.10.0-beta.2"; }); define("ember-inflector", ["exports", "ember", "ember-inflector/lib/system", "ember-inflector/lib/ext/string"], function (exports, _ember, _emberInflectorLibSystem, _emberInflectorLibExtString) { _emberInflectorLibSystem.Inflector.defaultRules = _emberInflectorLibSystem.defaultRules; _ember.default.Inflector = _emberInflectorLibSystem.Inflector;