mirror of
https://github.com/flynx/colors.js.git
synced 2026-01-13 06:45:36 +00:00
Revert "[api fix] Make properties non-enumerable"
This reverts commit adf06f0988ad72d437275c192a7503421cd853ba.
This commit is contained in:
parent
67ab1a7232
commit
52d4f71696
@ -48,9 +48,7 @@ var addProperty = function (color, func) {
|
|||||||
exports[color] = function (str) {
|
exports[color] = function (str) {
|
||||||
return func.apply(str);
|
return func.apply(str);
|
||||||
};
|
};
|
||||||
Object.defineProperty(String.prototype, color, {
|
String.prototype.__defineGetter__(color, func);
|
||||||
get: func
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user