diff --git a/colors.js b/colors.js index 92612b5..c830d6a 100644 --- a/colors.js +++ b/colors.js @@ -50,13 +50,11 @@ var addProperty = function (color, func) { }; if (Object.defineProperty) { - if(!String.prototype.hasOwnProperty(color)) { - Object.defineProperty(String.prototype, color, { - get : func, - configurable: true, - enumerable: false - }); - } + Object.defineProperty(String.prototype, color, { + get : func, + configurable: true, + enumerable: false + }); } else { String.prototype.__defineGetter__(color, func); }