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

Reload sometimes required to get .prototype proposals #3

Closed
petetronic opened this issue Apr 5, 2013 · 1 comment
Closed

Reload sometimes required to get .prototype proposals #3

petetronic opened this issue Apr 5, 2013 · 1 comment
Assignees

Comments

@petetronic
Copy link

//Define a functional object to hold persons in javascript
var Person = function (name) {
this.name = name;
};

//Add dynamically to the already defined object a new getter
Person.prototype.getName = function () {
return this.name;
};

//Create a new object of type Person
var john = new Person("John");

john. // Hint here only shows name, not getName() function. On reloading, it shows up.

@ghost ghost assigned eztierney Apr 5, 2013
eztierney added a commit that referenced this issue Apr 8, 2013
@eztierney
Copy link

This was fixed in tern, which I just updated to.
ternjs/tern@ea47748

eztierney added a commit that referenced this issue Apr 15, 2013
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

2 participants