Skip to content
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

Methods' this variable could be filled in even without calls #42

Closed
marijnh opened this issue Apr 9, 2013 · 0 comments
Closed

Methods' this variable could be filled in even without calls #42

marijnh opened this issue Apr 9, 2013 · 0 comments

Comments

@marijnh
Copy link
Member

marijnh commented Apr 9, 2013

When working on a library, there'll often be methods meant for external consumption that aren't called inside the library file itself. Their this will not get a type when they aren't called, and thus a lot of derived types also won't be found.

In methods living on a prototype, an instance of the prototype can be assigned to this. On objects that aren't prototypes, the object itself can be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant