-
Notifications
You must be signed in to change notification settings - Fork 36
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
@bind decorator bug when super method is called #12
Comments
This bug can be reproduced with babel es2015 preset. {"presets": ["es2015"], "plugins": ["transform-decorators-legacy"]} and |
Hmm interesting. I've never used this with prototypal inheritance, I can see how it'd overwrite itself like that. Not sure what the best solution for this would be, seems like any fix would break the lazy-binding behavior, which is sortof the big selling feature of this method. |
…om subclass method
This fix may help. It prevents |
|
How does the example even work? When I run it, I get an error:
|
This snippet demonstrates that the
bind
decorator does not work correctly on second method call if that method invokes super method which in turn is also decorated:Output:
The text was updated successfully, but these errors were encountered: