mirror of
https://github.com/flynx/colors.js.git
synced 2025-10-31 20:10:09 +00:00
Update extendStringPrototype.js
Remove ununused function and fix method name in blacklist
This commit is contained in:
parent
9f3ace4470
commit
255c078772
@ -9,14 +9,6 @@ module['exports'] = function () {
|
|||||||
String.prototype.__defineGetter__(color, func);
|
String.prototype.__defineGetter__(color, func);
|
||||||
};
|
};
|
||||||
|
|
||||||
var sequencer = function sequencer (map, str) {
|
|
||||||
return function () {
|
|
||||||
var exploded = this.split(""), i = 0;
|
|
||||||
exploded = exploded.map(map);
|
|
||||||
return exploded.join("");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
addProperty('strip', function () {
|
addProperty('strip', function () {
|
||||||
return colors.strip(this);
|
return colors.strip(this);
|
||||||
});
|
});
|
||||||
@ -67,7 +59,7 @@ module['exports'] = function () {
|
|||||||
var stringPrototypeBlacklist = [
|
var stringPrototypeBlacklist = [
|
||||||
'__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', 'charAt', 'constructor',
|
'__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', 'charAt', 'constructor',
|
||||||
'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf', 'charCodeAt',
|
'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf', 'charCodeAt',
|
||||||
'indexOf', 'lastIndexof', 'length', 'localeCompare', 'match', 'replace', 'search', 'slice', 'split', 'substring',
|
'indexOf', 'lastIndexOf', 'length', 'localeCompare', 'match', 'replace', 'search', 'slice', 'split', 'substring',
|
||||||
'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toUpperCase', 'trim', 'trimLeft', 'trimRight'
|
'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toUpperCase', 'trim', 'trimLeft', 'trimRight'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user