-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
How to set/get data within custom method? (this.set/get not working) #179
Comments
The validator should probably throw an error here. |
Alternative (ES 5): methods: {
foo: function(ab, cd) {
}
} |
Yes, this is a good idea. I'd say warning rather than error because there are occasions when you don't need |
Actually, we can improve on that – if the arrow function expression doesn't use |
error if method is an arrow function expression and uses `this` or `arguments`
Oh wow, good point. Thanks for the fast turn-around on this. |
Not sure if this is a bug or I'm doing it wrong, but
this.set
andthis.get
within a custom method do not appear to work. Or am I doing this wrong?e.g., the following doesn't work in REPL
The text was updated successfully, but these errors were encountered: