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

VarGate.set issue with parent / child #2

Open
jperezov opened this issue Apr 23, 2017 · 0 comments
Open

VarGate.set issue with parent / child #2

jperezov opened this issue Apr 23, 2017 · 0 comments

Comments

@jperezov
Copy link
Owner

Currently, VarGate logs a warning message when a child module sets a variable that has already been set in its parent without specifying that the override is intentional using VarGate.override.

Suppose we have

var childGate = VarGate.register('child');
childGate.set('first', 1);
VarGate.set('first', 2);

This will not cause a warning message to be logged, and is code that is prone to causing hard-to-debug logic errors. Not really sure how to tackle this at the moment, but it is a known issue.

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