dist/globals/ember-data.prod.js in ember-data-source-2.7.0 vs dist/globals/ember-data.prod.js in ember-data-source-2.8.0.beta.1

- 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.7.0 + * @version 2.8.0-beta.1 */ var loader, define, requireModule, require, requirejs; (function(global) { @@ -607,11 +607,11 @@ /** @module ember-data */ /** - All Ember Data methods and functions are defined inside of this namespace. + All Ember Data classes, methods and functions are defined inside of this namespace. @class DS @static */ @@ -679,11 +679,11 @@ typeClass = typeClass.superclass; } return typeClass.detect(addedRecord.type); } - /** + /* Assert that `addedRecord` has a valid type so it can be added to the relationship of the `record`. The assert basically checks if the `addedRecord` can be added to the relationship (specified via `relationshipMeta`) of the `record`. @@ -712,10 +712,22 @@ assert(assertionMessage, checkPolymorphic(typeClass, addedRecord)); } }); define('ember-data/-private/ext/date', ['exports', 'ember', 'ember-data/-private/debug'], function (exports, _ember, _emberDataPrivateDebug) { + /** + Date.parse with progressive enhancement for ISO 8601 <https://github.com/csnover/js-iso8601> + + © 2011 Colin Snover <http://zetafleet.com> + + Released under MIT license. + + @class Date + @namespace Ember + @static + @deprecated + */ _ember.default.Date = _ember.default.Date || {}; var origParse = Date.parse; var numericKeys = [1, 4, 5, 6, 7, 10, 11]; @@ -797,25 +809,25 @@ // eval outside of strict mode }); define("ember-data/-private/initializers/data-adapter", ["exports", "ember-data/-private/system/debug/debug-adapter"], function (exports, _emberDataPrivateSystemDebugDebugAdapter) { exports.default = initializeDebugAdapter; - /** + /* Configures a registry with injections on Ember applications for the Ember-Data store. Accepts an optional namespace argument. - @method initializeStoreInjections + @method initializeDebugAdapter @param {Ember.Registry} registry */ function initializeDebugAdapter(registry) { registry.register('data-adapter:main', _emberDataPrivateSystemDebugDebugAdapter.default); } }); define('ember-data/-private/initializers/store-injections', ['exports'], function (exports) { exports.default = initializeStoreInjections; - /** + /* Configures a registry with injections on Ember applications for the Ember-Data store. Accepts an optional namespace argument. @method initializeStoreInjections @param {Ember.Registry} registry @@ -841,11 +853,11 @@ // 2.1.0+ return applicationOrRegistry.hasRegistration(fullName); } } - /** + /* Configures a registry for use with an Ember-Data store. Accepts an optional namespace argument. @method initializeStore @param {Ember.Registry} registry @@ -871,11 +883,11 @@ } }); define('ember-data/-private/initializers/transforms', ['exports', 'ember-data/-private/transforms'], function (exports, _emberDataPrivateTransforms) { exports.default = initializeTransforms; - /** + /* Configures a registry for use with Ember-Data transforms. @method initializeTransforms @param {Ember.Registry} registry @@ -888,15 +900,15 @@ registry.register('transform:string', _emberDataPrivateTransforms.StringTransform); } }); define('ember-data/-private/instance-initializers/initialize-store-service', ['exports'], function (exports) { exports.default = initializeStoreService; - /** + /* Configures a registry for use with an Ember-Data store. - @method initializeStore + @method initializeStoreService @param {Ember.ApplicationInstance} applicationOrRegistry */ function initializeStoreService(application) { var container = application.lookup ? application : application.container; @@ -2113,11 +2125,11 @@ has: function (attribute) { return !isEmpty(this.errorsFor(attribute)); } }); }); -define("ember-data/-private/system/model/internal-model", ["exports", "ember", "ember-data/-private/debug", "ember-data/-private/system/model/states", "ember-data/-private/system/relationships/state/create", "ember-data/-private/system/snapshot", "ember-data/-private/system/empty-object", "ember-data/-private/utils", "ember-data/-private/system/references"], function (exports, _ember, _emberDataPrivateDebug, _emberDataPrivateSystemModelStates, _emberDataPrivateSystemRelationshipsStateCreate, _emberDataPrivateSystemSnapshot, _emberDataPrivateSystemEmptyObject, _emberDataPrivateUtils, _emberDataPrivateSystemReferences) { +define("ember-data/-private/system/model/internal-model", ["exports", "ember", "ember-data/-private/debug", "ember-data/-private/system/model/states", "ember-data/-private/system/relationships/state/create", "ember-data/-private/system/snapshot", "ember-data/-private/system/empty-object", "ember-data/-private/features", "ember-data/-private/utils", "ember-data/-private/system/references"], function (exports, _ember, _emberDataPrivateDebug, _emberDataPrivateSystemModelStates, _emberDataPrivateSystemRelationshipsStateCreate, _emberDataPrivateSystemSnapshot, _emberDataPrivateSystemEmptyObject, _emberDataPrivateFeatures, _emberDataPrivateUtils, _emberDataPrivateSystemReferences) { var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; })(); exports.default = InternalModel; var Promise = _ember.default.RSVP.Promise; @@ -2526,10 +2538,11 @@ this.send('rolledBack'); this.record._notifyProperties(dirtyKeys); }, + /* @method transitionTo @private @param {String} name */ @@ -2942,12 +2955,28 @@ } return reference; } }; + + if (false) { + /* + Returns the latest truth for an attribute - the canonical value, or the + in-flight value. + @method lastAcknowledgedValue + @private + */ + InternalModel.prototype.lastAcknowledgedValue = function lastAcknowledgedValue(key) { + if (key in this._inFlightAttributes) { + return this._inFlightAttributes[key]; + } else { + return this._data[key]; + } + }; + } }); -define("ember-data/-private/system/model/model", ["exports", "ember", "ember-data/-private/debug", "ember-data/-private/system/promise-proxies", "ember-data/-private/system/model/errors", "ember-data/-private/system/debug/debug-info", "ember-data/-private/system/relationships/belongs-to", "ember-data/-private/system/relationships/has-many", "ember-data/-private/system/relationships/ext", "ember-data/-private/system/model/attr"], function (exports, _ember, _emberDataPrivateDebug, _emberDataPrivateSystemPromiseProxies, _emberDataPrivateSystemModelErrors, _emberDataPrivateSystemDebugDebugInfo, _emberDataPrivateSystemRelationshipsBelongsTo, _emberDataPrivateSystemRelationshipsHasMany, _emberDataPrivateSystemRelationshipsExt, _emberDataPrivateSystemModelAttr) { +define("ember-data/-private/system/model/model", ["exports", "ember", "ember-data/-private/debug", "ember-data/-private/system/promise-proxies", "ember-data/-private/system/model/errors", "ember-data/-private/system/debug/debug-info", "ember-data/-private/system/relationships/belongs-to", "ember-data/-private/system/relationships/has-many", "ember-data/-private/system/relationships/ext", "ember-data/-private/system/model/attr", "ember-data/-private/features"], function (exports, _ember, _emberDataPrivateDebug, _emberDataPrivateSystemPromiseProxies, _emberDataPrivateSystemModelErrors, _emberDataPrivateSystemDebugDebugInfo, _emberDataPrivateSystemRelationshipsBelongsTo, _emberDataPrivateSystemRelationshipsHasMany, _emberDataPrivateSystemRelationshipsExt, _emberDataPrivateSystemModelAttr, _emberDataPrivateFeatures) { /** @module ember-data */ @@ -3832,10 +3861,32 @@ return this.store.container; } }); } + if (false) { + Model.reopen({ + /** + Discards any unsaved changes to the given attribute. + Example + ```javascript + record.get('name'); // 'Untitled Document' + record.set('name', 'Doc 1'); + record.get('name'); // 'Doc 1' + record.resetAttribute('name'); + record.get('name'); // 'Untitled Document' + ``` + @method resetAttribute + */ + resetAttribute: function (attributeName) { + if (attributeName in this._internalModel._attributes) { + this.set(attributeName, this._internalModel.lastAcknowledgedValue(attributeName)); + } + } + }); + } + Model.reopenClass(_emberDataPrivateSystemRelationshipsExt.RelationshipsClassMethodsMixin); Model.reopenClass(_emberDataPrivateSystemModelAttr.AttrClassMethodsMixin); exports.default = Model.extend(_emberDataPrivateSystemDebugDebugInfo.default, _emberDataPrivateSystemRelationshipsBelongsTo.BelongsToMixin, _emberDataPrivateSystemRelationshipsExt.DidDefinePropertyMixin, _emberDataPrivateSystemRelationshipsExt.RelationshipsInstanceMethodsMixin, _emberDataPrivateSystemRelationshipsHasMany.HasManyMixin, _emberDataPrivateSystemModelAttr.AttrInstanceMethodsMixin); }); @@ -4058,11 +4109,11 @@ // `uncommitted`: the store has not yet handed off the record // to be saved. // `inFlight`: the store has handed off the record to be saved, // but the adapter has not yet acknowledged success. // `invalid`: the record has invalid information and cannot be - // send to the adapter yet. + // sent to the adapter yet. var DirtyState = { initialState: 'uncommitted', // FLAGS isDirty: true, @@ -4602,11 +4653,11 @@ /** @module ember-data */ define('ember-data/-private/system/normalize-link', ['exports'], function (exports) { exports.default = _normalizeLink; - /** + /* This method normalizes a link to an "links object". If the passed link is already an object it's returned without any modifications. See http://jsonapi.org/format/#document-links for more information. @@ -10543,11 +10594,11 @@ }); define('ember-data/-private/utils', ['exports', 'ember'], function (exports, _ember) { var get = _ember.default.get; - /** + /* Check if the passed model has a `type` attribute or a relationship named `type`. @method modelHasAttributeOrRelationshipNamedType @param modelClass */ @@ -10711,13 +10762,12 @@ Here is an example `findRecord` implementation: ```app/adapters/application.js import DS from 'ember-data'; export default DS.Adapter.extend({ findRecord: function(store, type, id, snapshot) { - var url = [type.modelName, id].join('/'); return new Ember.RSVP.Promise(function(resolve, reject) { - Ember.$.getJSON(url).then(function(data) { + Ember.$.getJSON(`/${type.modelName}/${id}`).then(function(data) { Ember.run(null, resolve, data); }, function(jqXHR) { jqXHR.then = null; // tame jQuery's ill mannered promises Ember.run(null, reject, jqXHR); }); @@ -10739,14 +10789,13 @@ Example ```app/adapters/application.js import DS from 'ember-data'; export default DS.Adapter.extend({ findAll: function(store, type, sinceToken) { - var url = type; var query = { since: sinceToken }; return new Ember.RSVP.Promise(function(resolve, reject) { - Ember.$.getJSON(url, query).then(function(data) { + Ember.$.getJSON(`/${type.modelName}`, query).then(function(data) { Ember.run(null, resolve, data); }, function(jqXHR) { jqXHR.then = null; // tame jQuery's ill mannered promises Ember.run(null, reject, jqXHR); }); @@ -10768,13 +10817,12 @@ Example ```app/adapters/application.js import DS from 'ember-data'; export default DS.Adapter.extend({ query: function(store, type, query) { - var url = type; return new Ember.RSVP.Promise(function(resolve, reject) { - Ember.$.getJSON(url, query).then(function(data) { + Ember.$.getJSON(`/${type.modelName}`, query).then(function(data) { Ember.run(null, resolve, data); }, function(jqXHR) { jqXHR.then = null; // tame jQuery's ill mannered promises Ember.run(null, reject, jqXHR); }); @@ -10802,13 +10850,12 @@ ```app/adapters/application.js import DS from 'ember-data'; import Ember from 'ember'; export default DS.Adapter.extend(DS.BuildURLMixin, { queryRecord: function(store, type, query) { - var urlForQueryRecord = this.buildURL(type.modelName, null, null, 'queryRecord', query); - return new Ember.RSVP.Promise(function(resolve, reject) { - Ember.$.getJSON(urlForQueryRecord, query).then(function(data) { + return new Ember.RSVP.Promise(function(resolve, reject) { + Ember.$.getJSON(`/${type.modelName}`, query).then(function(data) { Ember.run(null, resolve, data); }, function(jqXHR) { jqXHR.then = null; // tame jQuery's ill mannered promises Ember.run(null, reject, jqXHR); }); @@ -10834,14 +10881,17 @@ with the new ID when it calls `didCreateRecord()`. Only implement this method if you intend to generate record IDs on the client-side. The `generateIdForRecord()` method will be invoked with the requesting store as the first parameter and the newly created record as the second parameter: ```javascript - generateIdForRecord: function(store, inputProperties) { - var uuid = App.generateUUIDWithStatisticallyLowOddsOfCollision(); - return uuid; - } + import DS from 'ember-data'; + import { v4 } from 'uuid'; + export default DS.Adapter.extend({ + generateIdForRecord: function(store, inputProperties) { + return v4(); + } + }); ``` @method generateIdForRecord @param {DS.Store} store @param {DS.Model} type the DS.Model class of the record @param {Object} inputProperties a hash of properties to set on the @@ -10856,11 +10906,11 @@ ```app/adapters/application.js import DS from 'ember-data'; export default DS.Adapter.extend({ createRecord: function(store, type, snapshot) { var data = this.serialize(snapshot, { includeId: true }); - var url = type; + var url = `/${type.modelName}`; // ... } }); ``` @method serialize @@ -10880,15 +10930,14 @@ ```app/adapters/application.js import DS from 'ember-data'; export default DS.Adapter.extend({ createRecord: function(store, type, snapshot) { var data = this.serialize(snapshot, { includeId: true }); - var url = type; return new Ember.RSVP.Promise(function(resolve, reject) { Ember.$.ajax({ type: 'POST', - url: url, + url: `/${type.modelName}`, dataType: 'json', data: data }).then(function(data) { Ember.run(null, resolve, data); }, function(jqXHR) { @@ -10923,15 +10972,14 @@ import DS from 'ember-data'; export default DS.Adapter.extend({ updateRecord: function(store, type, snapshot) { var data = this.serialize(snapshot, { includeId: true }); var id = snapshot.id; - var url = [type, id].join('/'); return new Ember.RSVP.Promise(function(resolve, reject) { Ember.$.ajax({ type: 'PUT', - url: url, + url: `/${type.modelName}/${id}`, dataType: 'json', data: data }).then(function(data) { Ember.run(null, resolve, data); }, function(jqXHR) { @@ -10959,15 +11007,14 @@ import DS from 'ember-data'; export default DS.Adapter.extend({ deleteRecord: function(store, type, snapshot) { var data = this.serialize(snapshot, { includeId: true }); var id = snapshot.id; - var url = [type, id].join('/'); return new Ember.RSVP.Promise(function(resolve, reject) { Ember.$.ajax({ type: 'DELETE', - url: url, + url: `/${type.modelName}/${id}`, dataType: 'json', data: data }).then(function(data) { Ember.run(null, resolve, data); }, function(jqXHR) { @@ -10995,11 +11042,33 @@ @type {boolean} */ coalesceFindRequests: true, /** - Find multiple records at once if coalesceFindRequests is true. + The store will call `findMany` instead of multiple `findRecord` + requests to find multiple records at once if coalesceFindRequests + is true. + ```app/adapters/application.js + import DS from 'ember-data'; + export default DS.Adapter.extend({ + findMany(store, type, ids, snapshots) { + return new Ember.RSVP.Promise(function(resolve, reject) { + Ember.$.ajax({ + type: 'GET', + url: `/${type.modelName}/`, + dataType: 'json', + data: { filter: { id: ids.join(',') } } + }).then(function(data) { + Ember.run(null, resolve, data); + }, function(jqXHR) { + jqXHR.then = null; // tame jQuery's ill mannered promises + Ember.run(null, reject, jqXHR); + }); + }); + } + }); + ``` @method findMany @param {DS.Store} store @param {DS.Model} type the DS.Model class of the records @param {Array} ids @param {Array} snapshots @@ -11488,11 +11557,11 @@ @param {Array} ids @param {Array} snapshots @return {Promise} promise */ findMany: function (store, type, ids, snapshots) { - if (false && !this._hasCustomizedAjax()) { + if (true && !this._hasCustomizedAjax()) { return this._super.apply(this, arguments); } else { var url = this.buildURL(type.modelName, ids, snapshots, 'findMany'); return this.ajax(url, 'GET', { data: { filter: { id: ids.join(',') } } }); } @@ -11515,11 +11584,11 @@ @param {DS.Model} type @param {DS.Snapshot} snapshot @return {Promise} promise */ updateRecord: function (store, type, snapshot) { - if (false && !this._hasCustomizedAjax()) { + if (true && !this._hasCustomizedAjax()) { return this._super.apply(this, arguments); } else { var data = {}; var serializer = store.serializerFor(type.modelName); @@ -11543,11 +11612,11 @@ return false; } }); - if (false) { + if (true) { JSONAPIAdapter.reopen({ methodForRequest: function (params) { if (params.requestType === 'updateRecord') { @@ -11969,11 +12038,11 @@ @param {String} id @param {DS.Snapshot} snapshot @return {Promise} promise */ findRecord: function (store, type, id, snapshot) { - if (false && !this._hasCustomizedAjax()) { + if (true && !this._hasCustomizedAjax()) { var request = this._requestFor({ store: store, type: type, id: id, snapshot: snapshot, requestType: 'findRecord' }); @@ -11999,11 +12068,11 @@ @return {Promise} promise */ findAll: function (store, type, sinceToken, snapshotRecordArray) { var query = this.buildQuery(snapshotRecordArray); - if (false && !this._hasCustomizedAjax()) { + if (true && !this._hasCustomizedAjax()) { var request = this._requestFor({ store: store, type: type, sinceToken: sinceToken, query: query, snapshots: snapshotRecordArray, requestType: 'findAll' }); @@ -12033,11 +12102,11 @@ @param {DS.Model} type @param {Object} query @return {Promise} promise */ query: function (store, type, query) { - if (false && !this._hasCustomizedAjax()) { + if (true && !this._hasCustomizedAjax()) { var request = this._requestFor({ store: store, type: type, query: query, requestType: 'query' }); @@ -12067,11 +12136,11 @@ @param {DS.Model} type @param {Object} query @return {Promise} promise */ queryRecord: function (store, type, query) { - if (false && !this._hasCustomizedAjax()) { + if (true && !this._hasCustomizedAjax()) { var request = this._requestFor({ store: store, type: type, query: query, requestType: 'queryRecord' }); @@ -12112,11 +12181,11 @@ @param {Array} ids @param {Array} snapshots @return {Promise} promise */ findMany: function (store, type, ids, snapshots) { - if (false && !this._hasCustomizedAjax()) { + if (true && !this._hasCustomizedAjax()) { var request = this._requestFor({ store: store, type: type, ids: ids, snapshots: snapshots, requestType: 'findMany' }); @@ -12152,11 +12221,11 @@ @param {DS.Snapshot} snapshot @param {String} url @return {Promise} promise */ findHasMany: function (store, snapshot, url, relationship) { - if (false && !this._hasCustomizedAjax()) { + if (true && !this._hasCustomizedAjax()) { var request = this._requestFor({ store: store, snapshot: snapshot, url: url, relationship: relationship, requestType: 'findHasMany' }); @@ -12196,11 +12265,11 @@ @param {DS.Snapshot} snapshot @param {String} url @return {Promise} promise */ findBelongsTo: function (store, snapshot, url, relationship) { - if (false && !this._hasCustomizedAjax()) { + if (true && !this._hasCustomizedAjax()) { var request = this._requestFor({ store: store, snapshot: snapshot, url: url, relationship: relationship, requestType: 'findBelongsTo' }); @@ -12226,11 +12295,11 @@ @param {DS.Model} type @param {DS.Snapshot} snapshot @return {Promise} promise */ createRecord: function (store, type, snapshot) { - if (false && !this._hasCustomizedAjax()) { + if (true && !this._hasCustomizedAjax()) { var request = this._requestFor({ store: store, type: type, snapshot: snapshot, requestType: 'createRecord' }); @@ -12258,11 +12327,11 @@ @param {DS.Model} type @param {DS.Snapshot} snapshot @return {Promise} promise */ updateRecord: function (store, type, snapshot) { - if (false && !this._hasCustomizedAjax()) { + if (true && !this._hasCustomizedAjax()) { var request = this._requestFor({ store: store, type: type, snapshot: snapshot, requestType: 'updateRecord' }); @@ -12288,11 +12357,11 @@ @param {DS.Model} type @param {DS.Snapshot} snapshot @return {Promise} promise */ deleteRecord: function (store, type, snapshot) { - if (false && !this._hasCustomizedAjax()) { + if (true && !this._hasCustomizedAjax()) { var request = this._requestFor({ store: store, type: type, snapshot: snapshot, requestType: 'deleteRecord' }); @@ -12669,11 +12738,11 @@ return false; } }); - if (false) { + if (true) { RESTAdapter.reopen({ /** * Get the data (body or query params) for a request. @@ -13290,11 +13359,11 @@ }); }); /** @module ember-data */ -define('ember-data/serializers/embedded-records-mixin', ['exports', 'ember', 'ember-data/-private/debug', 'ember-data/-private/features'], function (exports, _ember, _emberDataPrivateDebug, _emberDataPrivateFeatures) { +define('ember-data/serializers/embedded-records-mixin', ['exports', 'ember', 'ember-data/-private/debug'], function (exports, _ember, _emberDataPrivateDebug) { function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } } var get = _ember.default.get; var set = _ember.default.set; var camelize = _ember.default.String.camelize; @@ -13619,11 +13688,10 @@ { "id": "1", "type": "Parrot"} ] } } ``` - Note that the `ids-and-types` strategy is still behind the `ds-serialize-ids-and-types` feature flag. @method serializeHasMany @param {DS.Snapshot} snapshot @param {Object} json @param {Object} relationship */ @@ -13638,14 +13706,12 @@ var serializedKey = this.keyForRelationship(attr, relationship.kind, 'serialize'); json[serializedKey] = snapshot.hasMany(attr, { ids: true }); } else if (this.hasSerializeRecordsOption(attr)) { this._serializeEmbeddedHasMany(snapshot, json, relationship); } else { - if (true) { - if (this.hasSerializeIdsAndTypesOption(attr)) { - this._serializeHasManyAsIdsAndTypes(snapshot, json, relationship); - } + if (this.hasSerializeIdsAndTypesOption(attr)) { + this._serializeHasManyAsIdsAndTypes(snapshot, json, relationship); } } }, /** @@ -16907,11 +16973,11 @@ */ deserialize: null }); }); define("ember-data/version", ["exports"], function (exports) { - exports.default = "2.7.0"; + exports.default = "2.8.0-beta.1"; }); 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; @@ -17372,10 +17438,11 @@ }); require("ember-data"); +require("ember-load-initializers")["default"](Ember.Application, "ember-data"); ;(function() { var global = require('ember-data/-private/global').default; var DS = require('ember-data').default; Object.defineProperty(global, 'DS', { get: function() { @@ -17419,50 +17486,6 @@ } if (typeof define !== 'undefined' && define && define.petal) { processEmberDataShims(); } -})(); -/* eslint no-extra-semi: "off" */ - -;(function() { - /* globals Ember */ - /* globals DS */ - var K = Ember.K; - Ember.onLoad('Ember.Application', function(Application) { - - Application.initializer({ - name: "ember-data", - initialize: DS._setupContainer - }); - - Application.instanceInitializer({ - name: "ember-data", - initialize: DS._initializeStoreService - }); - - // Deprecated initializers to satisfy old code that depended on them - Application.initializer({ - name: "store", - after: "ember-data", - initialize: K - }); - - Application.initializer({ - name: "transforms", - before: "store", - initialize: K - }); - - Application.initializer({ - name: "data-adapter", - before: "store", - initialize: K - }); - - Application.initializer({ - name: "injectStore", - before: "store", - initialize: K - }); - }); })();