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

Tweak to keep it from polluting the browser's global namespace. #22

Closed
wants to merge 1 commit into from

Conversation

shepherdsam
Copy link

With it setting module and export in the global namespace it was conflicting with other libs in the browser. Example: If socket.io was included after this, socket.io would think it was running in node because of the global declared module and export variables.

@Marak
Copy link
Owner

Marak commented Jan 5, 2013

This commit will break normal browser usage if exports or modules is not defined.

@Marak Marak closed this Aug 21, 2013
@fresheneesz
Copy link

You should be able to package colors so that doing this kind of thing won't break browser usage...

@benbuckman benbuckman mentioned this pull request Jun 27, 2012
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.

None yet

3 participants