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

warn when adding the same value multiple times in a leaf #22

Open
nlundquist opened this issue Jul 16, 2019 · 0 comments
Open

warn when adding the same value multiple times in a leaf #22

nlundquist opened this issue Jul 16, 2019 · 0 comments

Comments

@nlundquist
Copy link

This issue arose during the upgrade of can-ejs and was resolved with the help of @justinbmeyer. The same function was being added as a handler multiple times, and removing it once would remove both instances unintentionally.

To help avoid situations like this, when the same value is added to a key tree multiple times a warning should be raised.

@nlundquist nlundquist changed the title warn when adding the same value multiple times in the same leaf warn when adding the same value multiple times in a leaf Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants