diff --git a/colors.js b/colors.js index c830d6a..7a537d8 100644 --- a/colors.js +++ b/colors.js @@ -48,20 +48,9 @@ var addProperty = function (color, func) { exports[color] = function (str) { return func.apply(str); }; - - if (Object.defineProperty) { - Object.defineProperty(String.prototype, color, { - get : func, - configurable: true, - enumerable: false - }); - } else { - String.prototype.__defineGetter__(color, func); - } + String.prototype.__defineGetter__(color, func); }; - - function stylize(str, style) { var styles;