Permalink
Browse files

Encapsulate whole block.

To make it safer for requirejs loading in terms of globals.
Tested in node and phantomjs.
  • Loading branch information...
1 parent c69342e commit 780bd7732f95db12c364c680ba3e63018f01c79a @renier committed Apr 7, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/ansi-color.js
View
@@ -1,3 +1,4 @@
+(function() {
// ANSI color code outputs for strings
var ANSI_CODES = {
@@ -47,3 +48,4 @@ if (typeof exports !== "undefined") {
} else if (typeof define !== "undefined") {
define([], function() { return { set: setColor, log: logMessage }; });
}
+}());

0 comments on commit 780bd77

Please sign in to comment.