@ember-data/model 4.12.0-alpha.2 → 4.12.0-alpha.4
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-d114a056";
|
|
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-d114a056";
|
|
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);
|
|
@@ -5186,7 +5187,7 @@ let Model = (_class = (_class2 = class Model extends EmberObject {
|
|
|
5186
5187
|
import { get } from '@ember/object';
|
|
5187
5188
|
import Blog from 'app/models/blog';
|
|
5188
5189
|
let relatedTypes = Blog.relatedTypes');
|
|
5189
|
-
//=> [
|
|
5190
|
+
//=> ['user', 'post']
|
|
5190
5191
|
```
|
|
5191
5192
|
@property relatedTypes
|
|
5192
5193
|
@public
|