-
Notifications
You must be signed in to change notification settings - Fork 84
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
We should hide private methods #514
Comments
That's unfortunate. The underscore should be a pretty good hint that these methods are not intended to be called. A couple of options:
|
Yeah, we could use private functions but then they don't end up on the prototype chain and I guess we need that (e.g. this sort of approach: http://stackoverflow.com/questions/55611/javascript-private-methods). Maybe it's not worth the effort of rewriting things to work around this. |
Do you have examples of people calling them? Maybe they have a use case we haven't covered? |
There is this sort if thing:
|
I think that user knows they are using the private API, they say
|
That's only because I pointed it out in a separate thread. (And still he keeps on using it.) |
Some users are clearly calling these methods that start with underscores. That's less than ideal since their code will break when native implementations are available. It also means we're not getting feedback about the API as-specced.
The text was updated successfully, but these errors were encountered: