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

Private state with Weakmaps? #24

Closed
travisleithead opened this issue Jul 17, 2015 · 2 comments
Closed

Private state with Weakmaps? #24

travisleithead opened this issue Jul 17, 2015 · 2 comments
Assignees

Comments

@travisleithead
Copy link

"Explaining the DOM via JavaScript"

Are weakmaps really the way of expressing private state?

@travisleithead travisleithead self-assigned this Jul 17, 2015
@domenic
Copy link
Member

domenic commented Jul 17, 2015

They're semantically enough. Syntactically they're not pretty. But at least now we have a way to say "you can produce observable behavior that is equivalent to DOM objects, including private state" whereas before you just couldn't.

@travisleithead
Copy link
Author

(Now that I understand WeakMaps better, this makes sense :)

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