Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use applyMixin directly instead of using it through Mixin #16732

Merged
merged 1 commit into from
Jun 9, 2018

Conversation

bekzod
Copy link
Contributor

@bekzod bekzod commented Jun 9, 2018

I think it is cleaner and readable just to export applyMixin and use it directly instead of accessing though Mixin

@@ -31,7 +32,6 @@ import { assert } from '@ember/debug';
import { DEBUG } from '@glimmer/env';
import { ENV } from 'ember-environment';

const applyMixin = Mixin._apply;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return (applyMixin as any)(...arguments);
}

static applyPartial(obj: any, ...args: any[]) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed static applyPartial since it is undocumented does not have usage in wild, and applyMixin could be used instead

@bekzod
Copy link
Contributor Author

bekzod commented Jun 9, 2018

ping tests pass

@rwjblue rwjblue merged commit ee874e9 into emberjs:master Jun 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants