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

Use Object.freeze for passing config #2

Open
nsisodiya opened this issue Nov 13, 2014 · 0 comments
Open

Use Object.freeze for passing config #2

nsisodiya opened this issue Nov 13, 2014 · 0 comments

Comments

@nsisodiya
Copy link
Owner

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze

When One module/component pass config to subView, they pass config object,
many times, config object is modified by child view (subView) and it further pass config to another Module.

config is the variable which belongs to Parent module and child must not modify it !!

The same principal apply for pubsub mechanism too !!

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