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

Rename config to nrchkbConfig for isolation purpose #565

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

GogoVega
Copy link
Contributor

The nrchkb node is not isolated which means that all variables in the top scope are global.

In order to avoid a variable duplication that prevents the homekit-service node from instantiating, I renamed config to nrchkbConfig. Because it's a common variable name.

@caitken-com
Copy link

I wonder if it’s possible to scope all those variables inside a function.

@GogoVega
Copy link
Contributor Author

Yes with IIFE but also need to modify the nodes to reflect this changes.

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

Successfully merging this pull request may close these issues.

3 participants