Skip to content

Commit

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

* here too

(cherry picked from commit 5a771b3)
  • Loading branch information
patricklx authored and Baltazore committed May 10, 2024
1 parent 36b6513 commit ff8d69a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/model/src/-private/promise-many-array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class PromiseManyArray {

if (DEPRECATE_A_USAGE) {
const meta = Ember.meta(this);
meta.hasMixin = (mixin: Object) => {
meta.addMixin = (mixin: Object) => {
deprecate(`Do not use A() on an EmberData PromiseManyArray`, false, {
id: 'ember-data:no-a-with-array-like',
until: '5.0',
Expand All @@ -73,7 +73,7 @@ export default class PromiseManyArray {
};
} else 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 @@ -524,7 +524,7 @@ class IdentifierArray {
};
} else 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 ff8d69a

Please sign in to comment.