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

Avoid conflicts with underscore #40

Merged

Conversation

algm
Copy link
Contributor

@algm algm commented Oct 7, 2015

In our environment we are using underscore. We found that the Winterfell version of lodash was overriding the global _ variable causing all kind of (not so) fun bugs.
To avoid that I added the .noConflict() method call to all places where lodash is included.

We tried using modular lodash, which we failed because Winterfell uses chaining. We also tried including it as an external dependency making it agnostic of both _ libraries which also failed because Winterfell uses methods that are not compatible with underscore.

@andrewhathaway
Copy link
Owner

Ahh. Good addition. Merging.

I'll also be taking a look at your other PRs, and the issues against Winterfell this weekend. Thanks!

andrewhathaway added a commit that referenced this pull request Oct 7, 2015
@andrewhathaway andrewhathaway merged commit 20fad60 into andrewhathaway:master Oct 7, 2015
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.

2 participants