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
Proposing adding support for a function that will allow a plugin to add/override methods without having to use a long extends chain.
It could look something like this:
ajax.js
export default class Ajax { get(url, data) { //... } post(url, data) { //... } }
app.js
import Ajax from './Plugins/ajax.js'; Domodule.registerPlugin(Ajax);
Not sure how we'd handle constructors though.
You think this would be helpful?
The text was updated successfully, but these errors were encountered:
FYI: https://facebook.github.io/react/blog/2016/07/13/mixins-considered-harmful.html
Sorry, something went wrong.
I've read that before and in the case of react and other huge frameworks it makes a lot of sense. For us though I think something more along the lines of http://matthijshollemans.com/2015/07/22/mixins-and-traits-in-swift-2/ makes more sense (implemented something like https://gist.github.com/lukescott/36453a75c39c539f5c7d at least until es7).
This would also allow us to break up the core class, something we can't really do right now.
cool, I'll go through these
No branches or pull requests
Proposing adding support for a function that will allow a plugin to add/override methods without having to use a long extends chain.
It could look something like this:
ajax.js
app.js
Not sure how we'd handle constructors though.
You think this would be helpful?
The text was updated successfully, but these errors were encountered: