dist/globals/ember-data.prod.js in ember-data-source-2.14.9 vs dist/globals/ember-data.prod.js in ember-data-source-2.14.10
- old
+ new
@@ -4,18 +4,20 @@
/*!
* @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.14.9
+ * @version 2.14.10
*/
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;
@@ -53,13 +55,11 @@
global[newName] = global[oldName];
global[oldName] = oldGlobals[oldName];
}
}
}
- },
- // Option to enable or disable the generation of default exports
- makeDefaultExport: true
+ }
};
var registry = dict();
var seen = dict();
@@ -105,11 +105,10 @@
// 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.id, this.callback);
}
this.reify();
@@ -119,13 +118,11 @@
this.state = 'finalized';
if (!(this.hasExportsAsDep && result === undefined)) {
this.module.exports = result;
}
- if (loader.makeDefaultExport) {
- this.makeDefaultExport();
- }
+ this.makeDefaultExport();
return this.module.exports;
};
Module.prototype.unsee = function () {
this.state = 'new';
@@ -279,11 +276,10 @@
function resolve(child, id) {
if (child.charAt(0) !== '.') {
return child;
}
-
var parts = child.split('/');
var nameParts = id.split('/');
var parentBase = nameParts.slice(0, -1);
for (var i = 0, l = parts.length; i < l; i++) {
@@ -9438,15 +9434,18 @@
}
this.willSync = true;
this.store._updateRelationshipState(this);
};
- Relationship.prototype.updateLink = function updateLink(link) {
+ Relationship.prototype.updateLink = function updateLink(link, initial) {
this.link = link;
this.linkPromise = null;
- this.internalModel.notifyPropertyChange(this.key);
+
+ if (!initial) {
+ this.internalModel.notifyPropertyChange(this.key);
+ }
};
Relationship.prototype.findLink = function findLink() {
if (this.linkPromise) {
return this.linkPromise;
@@ -12339,11 +12338,11 @@
var relationshipRequiresNotification = relationships.has(relationshipName) || isInverseRelationshipInitialized(store, internalModel, data, relationshipName, modelNameToInverseMap);
if (relationshipRequiresNotification) {
var relationshipData = data.relationships[relationshipName];
- relationships.get(relationshipName).push(relationshipData);
+ relationships.get(relationshipName).push(relationshipData, false);
}
// in debug, assert payload validity eagerly
});
}
@@ -17785,10 +17784,10 @@
});
define("ember-data/version", ["exports"], function (exports) {
"use strict";
exports.__esModule = true;
- exports.default = "2.14.9";
+ exports.default = "2.14.10";
});
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;