Skip to content

Commit

Permalink
Overwrite addMixin (#8850)
Browse files Browse the repository at this point in the history
* use addMixin

* here too
  • Loading branch information
patricklx committed Sep 10, 2023
1 parent 337fac8 commit 5a771b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/model/src/-private/promise-many-array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class PromiseManyArray {

if (DEBUG) {
const meta = Ember.meta(this);
meta.hasMixin = (mixin: object) => {
meta.addMixin = (mixin: object) => {
assert(`Do not use A() on an EmberData PromiseManyArray`);
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ class IdentifierArray {

if (DEBUG) {
const meta = Ember.meta(this);
meta.hasMixin = (mixin: object) => {
meta.addMixin = (mixin: object) => {
assert(`Do not call A() on EmberData RecordArrays`);
};
}
Expand Down

0 comments on commit 5a771b3

Please sign in to comment.