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
How would you write this in ES6?
var EventEmitter = require("events").EventEmitter var assign = require("react/lib/Object.assign") ... var ProductStore = assign({}, EventEmitter.prototype, { ... emitChange: function() { this.emit("change") },
The text was updated successfully, but these errors were encountered:
Perhaps this is a question better for StackOverflow, instead of filed as a bug on the ES6 feature showcase?
Sorry, something went wrong.
IMO framework-specific examples are not a great fit. But that's the last I'll say on the matter.
Probably an issue related to Babel https://gitter.im/babel/babel
No branches or pull requests
How would you write this in ES6?
var EventEmitter = require("events").EventEmitter
var assign = require("react/lib/Object.assign")
...
var ProductStore = assign({}, EventEmitter.prototype, {
...
emitChange: function() {
this.emit("change")
},
The text was updated successfully, but these errors were encountered: