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

incorrect comments #13

Open
forgetboy opened this issue Jan 27, 2014 · 0 comments
Open

incorrect comments #13

forgetboy opened this issue Jan 27, 2014 · 0 comments

Comments

@forgetboy
Copy link

Hi,

In the code, I think, the following comments are misplaced -

     // .........................................................Note: although a `delete
      // this.init` would remove the `init` function from the instance, it
      // would still exist in its super class' prototype.  ........................

The goal is to 'shadow the init method on the prototype,' which, is what should be communicated. Not sure what is being deleted? The instance itself doesn't have a init method.

The new comments can look something like this ->

// Shadow the init method on the prototype, by creating a
// init property on the instance, such that, the init method
// cannot be executed again by the same instance.

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