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

"Instance properties" are not actually in the instance #80

Open
thammi opened this issue Sep 28, 2015 · 0 comments
Open

"Instance properties" are not actually in the instance #80

thammi opened this issue Sep 28, 2015 · 0 comments

Comments

@thammi
Copy link

thammi commented Sep 28, 2015

In chapter 3 you are introducing instance properties. The syntax you are using is, in my opinion, not generating a instance property. The value is saved in the prototype of the class and not in this. Additionally, if you initialize with an object the object will be shared between all instances and changes on it will apply to all instances.

I would recommend initializing an instance property in the constructor.

Please fix this as you are having a high google rank on a search for 'coffeescript property'.

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