fix colors.js.

This commit is contained in:
Christopher Jeffrey 2013-06-16 10:16:34 -05:00
parent 44b290b86c
commit 188561c9ca

View File

@ -345,11 +345,11 @@ exports.ccolors = {
Object.keys(exports.ccolors).forEach(function(name) {
exports.ccolors[name].forEach(function(offset) {
if (typeof offset === 'number') {
cols[offset] = exports.colorNames[name];
exports.ccolors[offset] = exports.colorNames[name];
return;
}
var i = offset[0], l = offset[2];
for (; i <= l; i++) cols[i] = exports.colorNames[name];
for (; i <= l; i++) exports.ccolors[i] = exports.colorNames[name];
});
delete exports.ccolors[name];
});