Skip to content

Commit 3b9fc10

Browse files
patricklxkategengler
authored andcommitted
Overwrite addMixin (#8850)
* use addMixin * here too (cherry picked from commit 5a771b3)
1 parent 3990cc1 commit 3b9fc10

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/model/src/-private/promise-many-array.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default class PromiseManyArray {
5858

5959
if (DEPRECATE_A_USAGE) {
6060
const meta = Ember.meta(this);
61-
meta.hasMixin = (mixin: Object) => {
61+
meta.addMixin = (mixin: Object) => {
6262
deprecate(`Do not use A() on an EmberData PromiseManyArray`, false, {
6363
id: 'ember-data:no-a-with-array-like',
6464
until: '5.0',
@@ -73,7 +73,7 @@ export default class PromiseManyArray {
7373
};
7474
} else if (DEBUG) {
7575
const meta = Ember.meta(this);
76-
meta.hasMixin = (mixin: Object) => {
76+
meta.addMixin = (mixin: object) => {
7777
assert(`Do not use A() on an EmberData PromiseManyArray`);
7878
};
7979
}

packages/store/src/-private/record-arrays/identifier-array.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ class IdentifierArray {
524524
};
525525
} else if (DEBUG) {
526526
const meta = Ember.meta(this);
527-
meta.hasMixin = (mixin: Object) => {
527+
meta.addMixin = (mixin: Object) => {
528528
assert(`Do not call A() on EmberData RecordArrays`);
529529
};
530530
}

0 commit comments

Comments
 (0)