@ember-data/model 4.12.0-beta.2 → 4.12.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/addon/-private.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as Model } from "./has-many-
|
|
2
|
-
export { E as Errors, L as LEGACY_SUPPORT, R as ManyArray, P as PromiseBelongsTo, c as PromiseManyArray, a as attr, b as belongsTo, h as hasMany } from "./has-many-
|
|
1
|
+
import { M as Model } from "./has-many-d9924aae";
|
|
2
|
+
export { E as Errors, L as LEGACY_SUPPORT, R as ManyArray, P as PromiseBelongsTo, c as PromiseManyArray, a as attr, b as belongsTo, h as hasMany } from "./has-many-d9924aae";
|
|
3
3
|
import { getOwner } from '@ember/application';
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -3839,6 +3839,7 @@ function lookupLegacySupport(record) {
|
|
|
3839
3839
|
const identifier = recordIdentifierFor(record);
|
|
3840
3840
|
let support = LEGACY_SUPPORT.get(identifier);
|
|
3841
3841
|
if (!support) {
|
|
3842
|
+
assert(`Memory Leak Detected`, !record.isDestroyed && !record.isDestroying);
|
|
3842
3843
|
support = new LegacySupport(record);
|
|
3843
3844
|
LEGACY_SUPPORT.set(identifier, support);
|
|
3844
3845
|
LEGACY_SUPPORT.set(record, support);
|