We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently there are places where functions live on mixins for little or no reason (there may have been very good reasons before, but no longer).
While leaving the public API surface intact, we should refactor these out so that they may be consumed directly
export default Mixin.extend({ add(x) { return this.get('total') + x; } });
export function add(obj, x) { return obj.get('total') + x; } export default Mixin.extend({ add(x) { return add(this, x); } });
The text was updated successfully, but these errors were encountered:
mixins are deprecated now – see #2198
Sorry, something went wrong.
No branches or pull requests
Currently there are places where functions live on mixins for little or no reason (there may have been very good reasons before, but no longer).
While leaving the public API surface intact, we should refactor these out so that they may be consumed directly
Example
Before:
After:
The text was updated successfully, but these errors were encountered: