dist/globals/ember-data.prod.js in ember-data-source-2.12.0.beta.2 vs dist/globals/ember-data.prod.js in ember-data-source-2.12.0.beta.3
- 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.12.0-beta.2
+ * @version 2.12.0-beta.3
*/
var loader, define, requireModule, require, requirejs;
(function(global) {
@@ -1472,11 +1472,16 @@
},
flushCanonical: function () {
var isInitialized = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0];
- var toSet = this.canonicalState;
+ // TODO make this smarter, currently its plenty stupid
+ // TODO this filtering was re-introduced as a bugfix, but seems unneeded in 2.13
+ // with the changes to internalModel cleanup in that version.
+ var toSet = this.canonicalState.filter(function (internalModel) {
+ return internalModel.currentState.stateName !== 'root.deleted.saved';
+ });
//a hack for not removing new records
//TODO remove once we have proper diffing
var newRecords = this.currentState.filter(
// only add new records which are not yet in the canonical state of this
@@ -12383,13 +12388,11 @@
function getOwner(context) {
var owner;
if (_ember.default.getOwner) {
owner = _ember.default.getOwner(context);
- }
-
- if (!owner && context.container) {
+ } else if (context.container) {
owner = context.container;
}
if (owner && owner.lookupFactory && !owner._lookupFactory) {
// `owner` is a container, we are just making this work
@@ -19374,10 +19377,10 @@
*/
deserialize: null
});
});
define("ember-data/version", ["exports"], function (exports) {
- exports.default = "2.12.0-beta.2";
+ exports.default = "2.12.0-beta.3";
});
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;