-
Notifications
You must be signed in to change notification settings - Fork 21
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
change response to top-level this
?
#151
Comments
I don't think it's Esperanto's place to educate with default errors. Strict mode and its |
Ping. This is still causing problems. |
Noted. Am tied up with a bunch of other stuff at the moment but if anyone out there wants to submit a PR...? |
I'm down for a PR. I'll try to get something working this evening. \cc @truenorth. |
Awesome. This would be lovely |
Follow-on from https://github.com/artsyca/ember-cli-lodash/issues/3.
I'm happy with adding an
allowThis
option that simply replacesthis
withundefined
rather than throwing an error on property access, but I'm unconvinced that we should only throw an error if someone has checked thedisallowThis
(or whatever) option. In the vast majority of cases, the use ofthis.whatever
would be a misunderstanding on the part of the module author, and we have an opportunity to educate them and save them a good deal of frustration.My suggestion: implement
allowThis
(any ideas for a more accurate name?allowTopLevelThisPropertyAccess
possibly overkill), and change the error message to readThe text was updated successfully, but these errors were encountered: