dist/globals/ember-data.prod.js in ember-data-source-2.15.0.beta.2 vs dist/globals/ember-data.prod.js in ember-data-source-2.15.0.beta.3

- old
+ new

@@ -4,20 +4,18 @@ /*! * @overview Ember Data * @copyright Copyright 2011-2017 Tilde Inc. and contributors. * Portions Copyright 2011 LivingSocial Inc. * @license Licensed under MIT license (see license.js) - * @version 2.15.0-beta.2 + * @version 2.15.0-beta.3 */ var loader, define, requireModule, require, requirejs; (function (global) { 'use strict'; - var heimdall = global.heimdall; - function dict() { var obj = Object.create(null); obj['__'] = undefined; delete obj['__']; return obj; @@ -30,13 +28,13 @@ requireModule: requireModule, require: require, requirejs: requirejs }; - requirejs = require = requireModule = function (name) { + requirejs = require = requireModule = function (id) { var pending = []; - var mod = findModule(name, '(require)', pending); + var mod = findModule(id, '(require)', pending); for (var i = pending.length - 1; i >= 0; i--) { pending[i].exports(); } @@ -55,36 +53,29 @@ global[newName] = global[oldName]; global[oldName] = oldGlobals[oldName]; } } } - } + }, + // Option to enable or disable the generation of default exports + makeDefaultExport: true }; - var _isArray; - if (!Array.isArray) { - _isArray = function (x) { - return Object.prototype.toString.call(x) === '[object Array]'; - }; - } else { - _isArray = Array.isArray; - } - var registry = dict(); var seen = dict(); var uuid = 0; function unsupportedModule(length) { - throw new Error('an unsupported module was defined, expected `define(name, deps, module)` instead got: `' + length + '` arguments to define`'); + throw new Error('an unsupported module was defined, expected `define(id, deps, module)` instead got: `' + length + '` arguments to define`'); } var defaultDeps = ['require', 'exports', 'module']; - function Module(name, deps, callback, alias) { - this.id = uuid++; - this.name = name; + function Module(id, deps, callback, alias) { + this.uuid = uuid++; + this.id = id; this.deps = !deps.length && callback.length ? defaultDeps : deps; this.module = { exports: {} }; this.callback = callback; this.hasExportsAsDep = false; this.isAlias = alias; @@ -114,23 +105,27 @@ // circular dependency so we must return our (partial) exports. if (this.state === 'finalized' || this.state === 'reifying') { return this.module.exports; } + if (loader.wrapModules) { - this.callback = loader.wrapModules(this.name, this.callback); + this.callback = loader.wrapModules(this.id, this.callback); } this.reify(); var result = this.callback.apply(this, this.reified); + this.reified.length = 0; this.state = 'finalized'; if (!(this.hasExportsAsDep && result === undefined)) { this.module.exports = result; } - this.makeDefaultExport(); + if (loader.makeDefaultExport) { + this.makeDefaultExport(); + } return this.module.exports; }; Module.prototype.unsee = function () { this.state = 'new'; @@ -179,93 +174,118 @@ } else if (dep === 'require') { entry.exports = this.makeRequire(); } else if (dep === 'module') { entry.exports = this.module; } else { - entry.module = findModule(resolve(dep, this.name), this.name, pending); + entry.module = findModule(resolve(dep, this.id), this.id, pending); } } }; Module.prototype.makeRequire = function () { - var name = this.name; + var id = this.id; var r = function (dep) { - return require(resolve(dep, name)); + return require(resolve(dep, id)); }; r['default'] = r; + r.moduleId = id; r.has = function (dep) { - return has(resolve(dep, name)); + return has(resolve(dep, id)); }; return r; }; - define = function (name, deps, callback) { - var module = registry[name]; + define = function (id, deps, callback) { + var module = registry[id]; - // If a module for this name has already been defined and is in any state + // If a module for this id has already been defined and is in any state // other than `new` (meaning it has been or is currently being required), // then we return early to avoid redefinition. if (module && module.state !== 'new') { return; } if (arguments.length < 2) { unsupportedModule(arguments.length); } - if (!_isArray(deps)) { + if (!Array.isArray(deps)) { callback = deps; deps = []; } if (callback instanceof Alias) { - registry[name] = new Module(callback.name, deps, callback, true); + registry[id] = new Module(callback.id, deps, callback, true); } else { - registry[name] = new Module(name, deps, callback, false); + registry[id] = new Module(id, deps, callback, false); } }; + define.exports = function (name, defaultExport) { + var module = registry[name]; + + // If a module for this name has already been defined and is in any state + // other than `new` (meaning it has been or is currently being required), + // then we return early to avoid redefinition. + if (module && module.state !== 'new') { + return; + } + + module = new Module(name, [], noop, null); + module.module.exports = defaultExport; + module.state = 'finalized'; + registry[name] = module; + + return module; + }; + + function noop() {} // we don't support all of AMD // define.amd = {}; - function Alias(path) { - this.name = path; + function Alias(id) { + this.id = id; } - define.alias = function (path) { - return new Alias(path); + define.alias = function (id, target) { + if (arguments.length === 2) { + return define(target, new Alias(id)); + } + + return new Alias(id); }; - function missingModule(name, referrer) { - throw new Error('Could not find module `' + name + '` imported from `' + referrer + '`'); + function missingModule(id, referrer) { + throw new Error('Could not find module `' + id + '` imported from `' + referrer + '`'); } - function findModule(name, referrer, pending) { - var mod = registry[name] || registry[name + '/index']; + function findModule(id, referrer, pending) { + var mod = registry[id] || registry[id + '/index']; while (mod && mod.isAlias) { - mod = registry[mod.name]; + mod = registry[mod.id]; } if (!mod) { - missingModule(name, referrer); + missingModule(id, referrer); } if (pending && mod.state !== 'pending' && mod.state !== 'finalized') { mod.findDeps(pending); pending.push(mod); } return mod; } - function resolve(child, name) { + function resolve(child, id) { if (child.charAt(0) !== '.') { return child; } + var parts = child.split('/'); - var nameParts = name.split('/'); + var nameParts = id.split('/'); var parentBase = nameParts.slice(0, -1); for (var i = 0, l = parts.length; i < l; i++) { var part = parts[i]; @@ -282,18 +302,18 @@ } return parentBase.join('/'); } - function has(name) { - return !!(registry[name] || registry[name + '/index']); + function has(id) { + return !!(registry[id] || registry[id + '/index']); } requirejs.entries = requirejs._eak_seen = registry; requirejs.has = has; - requirejs.unsee = function (moduleName) { - findModule(moduleName, '(unsee)', false).unsee(); + requirejs.unsee = function (id) { + findModule(id, '(unsee)', false).unsee(); }; requirejs.clear = function () { requirejs.entries = requirejs._eak_seen = registry = dict(); seen = dict(); @@ -308,13 +328,16 @@ require('foo/bar'); } }); define('foo/baz', [], define.alias('foo')); define('foo/quz', define.alias('foo')); + define.alias('foo', 'foo/qux'); define('foo/bar', ['foo', './quz', './baz', './asdf', './bar', '../foo'], function () {}); define('foo/main', ['foo/bar'], function () {}); + define.exports('foo/exports', {}); + require('foo/exports'); require('foo/main'); require.unsee('foo/bar'); requirejs.clear(); @@ -3000,21 +3023,15 @@ internalModel.updateRecordArrays(); }); }; InternalModel.prototype._directlyRelatedInternalModels = function _directlyRelatedInternalModels() { - var _this = this; - var array = []; - this.type.eachRelationship(function (key, relationship) { - if (_this._relationships.has(key)) { - var _relationship = _this._relationships.get(key); - var localRelationships = _relationship.members.toArray(); - var serverRelationships = _relationship.canonicalMembers.toArray(); - - array = array.concat(localRelationships, serverRelationships); - } + this._relationships.forEach(function (name, rel) { + var local = rel.members.toArray(); + var server = rel.canonicalMembers.toArray(); + array = array.concat(local, server); }); return array; }; InternalModel.prototype._allRelatedInternalModels = function _allRelatedInternalModels() { @@ -3041,10 +3058,11 @@ }; InternalModel.prototype.unloadRecord = function unloadRecord() { this.send('unloadRecord'); this.dematerializeRecord(); + if (this._scheduledDestroy === null) { this._scheduledDestroy = run.schedule('destroy', this, '_checkForOrphanedInternalModels'); } }; @@ -3086,10 +3104,15 @@ InternalModel.prototype.destroy = function destroy() { (false && _ember.default.assert("Cannot destroy an internalModel while its record is materialized", !this._record || this._record.get('isDestroyed') || this._record.get('isDestroying'))); this.store._internalModelDestroyed(this); + + this._relationships.forEach(function (name, rel) { + return rel.destroy(); + }); + this._isDestroyed = true; }; InternalModel.prototype.eachAttribute = function eachAttribute(callback, binding) { return this.modelClass.eachAttribute(callback, binding); @@ -3214,16 +3237,10 @@ if (this.hasRecord) { this._record.notifyHasManyAdded(key, record, idx); } }; - InternalModel.prototype.notifyHasManyRemoved = function notifyHasManyRemoved(key, record, idx) { - if (this.hasRecord) { - this._record.notifyHasManyRemoved(key, record, idx); - } - }; - InternalModel.prototype.notifyBelongsToChanged = function notifyBelongsToChanged(key, record) { if (this.hasRecord) { this._record.notifyBelongsToChanged(key, record); } }; @@ -3253,11 +3270,11 @@ //TODO: Should probably move this to the state machine somehow this.becameReady(); } if (this.isNew()) { - this.clearRelationships(); + this.removeFromInverseRelationships(true); } if (this.isValid()) { this._inFlightAttributes = null; } @@ -3369,51 +3386,72 @@ } triggers.length = 0; }; - InternalModel.prototype.clearRelationships = function clearRelationships() { - var _this2 = this; + InternalModel.prototype.removeFromInverseRelationships = function removeFromInverseRelationships() { + var isNew = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - this.eachRelationship(function (name, relationship) { - if (_this2._relationships.has(name)) { - var rel = _this2._relationships.get(name); + this._relationships.forEach(function (name, rel) { + rel.removeCompletelyFromInverse(); + if (isNew === true) { rel.clear(); - rel.removeInverseRelationships(); } }); - Object.keys(this._implicitRelationships).forEach(function (key) { - _this2._implicitRelationships[key].clear(); - _this2._implicitRelationships[key].removeInverseRelationships(); + + var implicitRelationships = this._implicitRelationships; + this.__implicitRelationships = null; + + Object.keys(implicitRelationships).forEach(function (key) { + var rel = implicitRelationships[key]; + + rel.removeCompletelyFromInverse(); + if (isNew === true) { + rel.clear(); + } }); }; InternalModel.prototype.destroyRelationships = function destroyRelationships() { - var _this3 = this; + var _this = this; - this.eachRelationship(function (name, relationship) { - if (_this3._relationships.has(name)) { - var rel = _this3._relationships.get(name); + this._relationships.forEach(function (name, rel) { + if (rel._inverseIsAsync()) { + rel.removeInternalModelFromInverse(_this); rel.removeInverseRelationships(); + } else { + rel.removeCompletelyFromInverse(); } }); - Object.keys(this._implicitRelationships).forEach(function (key) { - _this3._implicitRelationships[key].removeInverseRelationships(); + + var implicitRelationships = this._implicitRelationships; + this.__implicitRelationships = null; + Object.keys(implicitRelationships).forEach(function (key) { + var rel = implicitRelationships[key]; + + if (rel._inverseIsAsync()) { + rel.removeInternalModelFromInverse(_this); + rel.removeInverseRelationships(); + } else { + rel.removeCompletelyFromInverse(); + } + + rel.destroy(); }); }; InternalModel.prototype.preloadData = function preloadData(preload) { - var _this4 = this; + var _this2 = this; //TODO(Igor) consider the polymorphic case Object.keys(preload).forEach(function (key) { var preloadValue = get(preload, key); - var relationshipMeta = _this4.modelClass.metaForProperty(key); + var relationshipMeta = _this2.modelClass.metaForProperty(key); if (relationshipMeta.isRelationship) { - _this4._preloadRelationship(key, preloadValue); + _this2._preloadRelationship(key, preloadValue); } else { - _this4._data[key] = preloadValue; + _this2._data[key] = preloadValue; } }); }; InternalModel.prototype._preloadRelationship = function _preloadRelationship(key, preloadValue) { @@ -5504,11 +5542,11 @@ saved: { // FLAGS isDirty: false, setup: function (internalModel) { - internalModel.clearRelationships(); + internalModel.removeFromInverseRelationships(); }, invokeLifecycleCallbacks: function (internalModel) { internalModel.triggerLater('didDelete', internalModel); internalModel.triggerLater('didCommit', internalModel); }, @@ -8370,17 +8408,16 @@ var inverseRelationshipData = { data: { id: id, type: modelName } - }; - // start flushing this individual payload. The logic is the same whether - // it's for the left hand side of the relationship or the right hand side, - // except the role of primary and inverse idToPayloads is reversed - // - var previousPayload = void 0; + // start flushing this individual payload. The logic is the same whether + // it's for the left hand side of the relationship or the right hand side, + // except the role of primary and inverse idToPayloads is reversed + // + };var previousPayload = void 0; var idToPayloads = void 0; var inverseIdToPayloads = void 0; var inverseIsMany = void 0; if (this._isLHS(modelName, relationshipName)) { previousPayload = this._lhsPayloads[id]; @@ -8640,10 +8677,23 @@ BelongsToRelationship.prototype.inverseDidDematerialize = function inverseDidDematerialize() { this.notifyBelongsToChanged(); }; + BelongsToRelationship.prototype.removeCompletelyFromOwn = function removeCompletelyFromOwn(internalModel) { + _Relationship.prototype.removeCompletelyFromOwn.call(this, internalModel); + + if (this.canonicalState === internalModel) { + this.canonicalState = null; + } + + if (this.inverseInternalModel === internalModel) { + this.inverseInternalModel = null; + this.notifyBelongsToChanged(); + } + }; + BelongsToRelationship.prototype.flushCanonical = function flushCanonical() { //temporary fix to not remove newly created records if server returned null. //TODO remove once we have proper diffing if (this.inverseInternalModel && this.inverseInternalModel.isNew() && !this.canonicalState) { return; @@ -8850,10 +8900,17 @@ Relationships.prototype.has = function has(key) { return !!this.initializedRelationships[key]; }; + Relationships.prototype.forEach = function forEach(cb) { + var rels = this.initializedRelationships; + Object.keys(rels).forEach(function (name) { + cb(name, rels[name]); + }); + }; + Relationships.prototype.get = function get(key) { var relationships = this.initializedRelationships; var relationship = relationships[key]; var internalModel = this.internalModel; @@ -9033,10 +9090,30 @@ this.canonicalState.splice(i, 1); } _Relationship.prototype.removeCanonicalInternalModelFromOwn.call(this, internalModel, idx); }; + ManyRelationship.prototype.removeCompletelyFromOwn = function removeCompletelyFromOwn(internalModel) { + _Relationship.prototype.removeCompletelyFromOwn.call(this, internalModel); + + var canonicalIndex = this.canonicalState.indexOf(internalModel); + + if (canonicalIndex !== -1) { + this.canonicalState.splice(canonicalIndex, 1); + } + + var manyArray = this._manyArray; + + if (manyArray) { + var idx = manyArray.currentState.indexOf(internalModel); + + if (idx !== -1) { + manyArray.internalReplace(idx, 1); + } + } + }; + ManyRelationship.prototype.flushCanonical = function flushCanonical() { if (this._manyArray) { this._manyArray.flushCanonical(); } _Relationship.prototype.flushCanonical.call(this); @@ -9109,37 +9186,45 @@ this.addCanonicalInternalModel(internalModel, i); } }; ManyRelationship.prototype.setInitialInternalModels = function setInitialInternalModels(internalModels) { - var _this2 = this; + var _canonicalState; - if (!internalModels) { + if (Array.isArray(internalModels) === false || internalModels.length === 0) { return; } - var args = [0, this.canonicalState.length].concat(internalModels); - this.canonicalState.splice.apply(this.canonicalState, args); - internalModels.forEach(function (internalModel) { - _this2.canonicalMembers.add(internalModel); - _this2.members.add(internalModel); - _this2.setupInverseRelationship(internalModel); - }); + var forCanonical = []; + + for (var i = 0; i < internalModels.length; i++) { + var internalModel = internalModels[i]; + if (this.canonicalMembers.has(internalModel)) { + continue; + } + + forCanonical.push(internalModel); + this.canonicalMembers.add(internalModel); + this.members.add(internalModel); + this.setupInverseRelationship(internalModel); + } + + (_canonicalState = this.canonicalState).splice.apply(_canonicalState, [0, this.canonicalState.length].concat(forCanonical)); }; ManyRelationship.prototype.fetchLink = function fetchLink() { - var _this3 = this; + var _this2 = this; return this.store.findHasMany(this.internalModel, this.link, this.relationshipMeta).then(function (records) { if (records.hasOwnProperty('meta')) { - _this3.updateMeta(records.meta); + _this2.updateMeta(records.meta); } - _this3.store._backburner.join(function () { - _this3.updateInternalModelsFromAdapter(records); - _this3.manyArray.set('isLoaded', true); + _this2.store._backburner.join(function () { + _this2.updateInternalModelsFromAdapter(records); + _this2.manyArray.set('isLoaded', true); }); - return _this3.manyArray; + return _this2.manyArray; }); }; ManyRelationship.prototype.findRecords = function findRecords() { var manyArray = this.manyArray; @@ -9158,22 +9243,22 @@ ManyRelationship.prototype.notifyHasManyChanged = function notifyHasManyChanged() { this.internalModel.notifyHasManyAdded(this.key); }; ManyRelationship.prototype.getRecords = function getRecords() { - var _this4 = this; + var _this3 = this; //TODO(Igor) sync server here, once our syncing is not stupid var manyArray = this.manyArray; if (this.isAsync) { var promise = void 0; if (this.link) { if (this.hasLoaded) { promise = this.findRecords(); } else { promise = this.findLink().then(function () { - return _this4.findRecords(); + return _this3.findRecords(); }); } } else { promise = this.findRecords(); } @@ -9198,10 +9283,24 @@ } else { this.updateInternalModelsFromAdapter(internalModels); } }; + ManyRelationship.prototype.destroy = function destroy() { + _Relationship.prototype.destroy.call(this); + var manyArray = this._manyArray; + if (manyArray) { + manyArray.destroy(); + } + + var proxy = this.__loadingPromise; + + if (proxy) { + proxy.destroy(); + } + }; + _createClass(ManyRelationship, [{ key: '_loadingPromise', get: function () { return this.__loadingPromise; } @@ -9239,11 +9338,11 @@ } return set; } }); -define('ember-data/-private/system/relationships/state/relationship', ['exports', 'ember-data/-private/system/ordered-set', 'ember-data/-private/system/normalize-link'], function (exports, _orderedSet, _normalizeLink2) { +define('ember-data/-private/system/relationships/state/relationship', ['exports', 'ember-data/-private/system/ordered-set', 'ember-data/-private/system/normalize-link', 'ember'], function (exports, _orderedSet, _normalizeLink2, _ember) { 'use strict'; exports.__esModule = true; function _classCallCheck(instance, Constructor) { @@ -9268,10 +9367,12 @@ if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var guidFor = _ember.default.guidFor; + var Relationship = function () { function Relationship(store, internalModel, inverseKey, relationshipMeta) { var async = relationshipMeta.options.async; var polymorphic = relationshipMeta.options.polymorphic; this.members = new _orderedSet.default(); @@ -9290,10 +9391,17 @@ this.meta = null; this.hasData = false; this.hasLoaded = false; } + Relationship.prototype._inverseIsAsync = function _inverseIsAsync() { + if (!this.inverseKey || !this.inverseInternalModel) { + return false; + } + return this.inverseInternalModel._relationships.get(this.inverseKey).isAsync; + }; + Relationship.prototype.removeInverseRelationships = function removeInverseRelationships() { var _this = this; if (!this.inverseKey) { return; @@ -9384,11 +9492,11 @@ } } else { var _relationships = internalModel._implicitRelationships; var _relationship = _relationships[this.inverseKeyForImplicit]; if (!_relationship) { - _relationship = _relationships[this.inverseKeyForImplicit] = new Relationship(this.store, internalModel, this.key, { options: {} }); + _relationship = _relationships[this.inverseKeyForImplicit] = new Relationship(this.store, internalModel, this.key, { options: { async: this.isAsync } }); } _relationship.addCanonicalInternalModel(this.internalModel); } }; @@ -9422,11 +9530,11 @@ this.notifyRecordRelationshipAdded(internalModel, idx); if (this.inverseKey) { internalModel._relationships.get(this.inverseKey).addInternalModel(this.internalModel); } else { if (!internalModel._implicitRelationships[this.inverseKeyForImplicit]) { - internalModel._implicitRelationships[this.inverseKeyForImplicit] = new Relationship(this.store, internalModel, this.key, { options: {} }); + internalModel._implicitRelationships[this.inverseKeyForImplicit] = new Relationship(this.store, internalModel, this.key, { options: { async: this.isAsync } }); } internalModel._implicitRelationships[this.inverseKeyForImplicit].addInternalModel(this.internalModel); } this.internalModel.updateRecordArrays(); } @@ -9454,11 +9562,10 @@ } }; Relationship.prototype.removeInternalModelFromOwn = function removeInternalModelFromOwn(internalModel) { this.members.delete(internalModel); - this.notifyRecordRelationshipRemoved(internalModel); this.internalModel.updateRecordArrays(); }; Relationship.prototype.removeCanonicalInternalModelFromInverse = function removeCanonicalInternalModelFromInverse(internalModel) { var inverseRelationship = internalModel._relationships.get(this.inverseKey); @@ -9471,10 +9578,42 @@ Relationship.prototype.removeCanonicalInternalModelFromOwn = function removeCanonicalInternalModelFromOwn(internalModel) { this.canonicalMembers.delete(internalModel); this.flushCanonicalLater(); }; + Relationship.prototype.removeCompletelyFromInverse = function removeCompletelyFromInverse() { + var _this4 = this; + + if (!this.inverseKey) { + return; + } + + // we actually want a union of members and canonicalMembers + // they should be disjoint but currently are not due to a bug + var seen = Object.create(null); + var internalModel = this.internalModel; + + var unload = function (inverseInternalModel) { + var id = guidFor(inverseInternalModel); + + if (seen[id] === undefined) { + var relationship = inverseInternalModel._relationships.get(_this4.inverseKey); + relationship.removeCompletelyFromOwn(internalModel); + seen[id] = true; + } + }; + + this.members.forEach(unload); + this.canonicalMembers.forEach(unload); + }; + + Relationship.prototype.removeCompletelyFromOwn = function removeCompletelyFromOwn(internalModel) { + this.canonicalMembers.delete(internalModel); + this.members.delete(internalModel); + this.internalModel.updateRecordArrays(); + }; + Relationship.prototype.flushCanonical = function flushCanonical() { var list = this.members.list; this.willSync = false; //a hack for not removing new internalModels //TODO remove once we have proper diffing @@ -9499,14 +9638,14 @@ this.willSync = true; this.store._updateRelationshipState(this); }; Relationship.prototype.updateLink = function updateLink(link) { - (false && Ember.warn('You pushed a record of type \'' + this.internalModel.modelName + '\' with a relationship \'' + this.key + '\' configured as \'async: false\'. You\'ve included a link but no primary data, this may be an error in your payload.', this.isAsync || this.hasData, { + (false && _ember.default.warn('You pushed a record of type \'' + this.internalModel.modelName + '\' with a relationship \'' + this.key + '\' configured as \'async: false\'. You\'ve included a link but no primary data, this may be an error in your payload.', this.isAsync || this.hasData, { id: 'ds.store.push-link-for-sync-relationship' })); - (false && Ember.assert('You have pushed a record of type \'' + this.internalModel.modelName + '\' with \'' + this.key + '\' as a link, but the value of that link is not a string.', typeof link === 'string' || link === null)); + (false && _ember.default.assert('You have pushed a record of type \'' + this.internalModel.modelName + '\' with \'' + this.key + '\' as a link, but the value of that link is not a string.', typeof link === 'string' || link === null)); this.link = link; this.linkPromise = null; this.internalModel.notifyPropertyChange(this.key); @@ -9530,12 +9669,10 @@ this.computeChanges(internalModels); }; Relationship.prototype.notifyRecordRelationshipAdded = function notifyRecordRelationshipAdded() {}; - Relationship.prototype.notifyRecordRelationshipRemoved = function notifyRecordRelationshipRemoved() {}; - Relationship.prototype.setHasData = function setHasData(value) { this.hasData = value; }; Relationship.prototype.setHasLoaded = function setHasLoaded(value) { @@ -9582,10 +9719,12 @@ } }; Relationship.prototype.updateData = function updateData() {}; + Relationship.prototype.destroy = function destroy() {}; + _createClass(Relationship, [{ key: 'parentType', get: function () { return this.internalModel.modelName; } @@ -15314,11 +15453,11 @@ name: 'data-adapter', before: 'store', initialize: function () {} }; }); -define('ember-data/initializers/ember-data', ['exports', 'ember-data/setup-container', 'ember-data/index'], function (exports, _setupContainer) { +define('ember-data/initializers/ember-data', ['exports', 'ember-data/setup-container', 'ember-data'], function (exports, _setupContainer) { 'use strict'; exports.__esModule = true; exports.default = { name: 'ember-data', @@ -18264,10 +18403,10 @@ }); define("ember-data/version", ["exports"], function (exports) { "use strict"; exports.__esModule = true; - exports.default = "2.15.0-beta.2"; + exports.default = "2.15.0-beta.3"; }); define("ember-inflector", ["module", "exports", "ember", "ember-inflector/lib/system", "ember-inflector/lib/ext/string"], function (module, exports, _ember, _system) { "use strict"; exports.__esModule = true;