fix computation of camel-case symbol key

This commit is contained in:
rolux 2014-01-05 15:29:21 +05:30
parent e43caaa23b
commit ace14c7fca

View file

@ -346,7 +346,9 @@ Ox.load.UI = function(options, callback) {
if (type == 'symbol') {
if (Ox.isString(color)) {
colorName = color;
color = themeData['symbol' + Ox.toTitleCase(color) + 'Color'];
color = themeData[
'symbol' + color[0].toUpperCase() + color.slice(1) + 'Color'
];
}
image = image.replace(/#808080/g, '#' + Ox.toHex(color));
}