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

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants

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.

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

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

@benbuckman benbuckman referenced this pull request Jun 27, 2012

Closed

Conflicts with REPL #25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment