[fix] Map themes to safe api even if module is being used in normal mode #82

This commit is contained in:
Marak 2014-10-01 18:06:04 +02:00
parent fee9d2475f
commit 6a6353f9cd

View File

@ -78,6 +78,7 @@ module['exports'] = function () {
} }
else { else {
if (typeof(theme[prop]) === 'string') { if (typeof(theme[prop]) === 'string') {
colors[prop] = colors[theme[prop]];
addProperty(prop, function () { addProperty(prop, function () {
return colors[theme[prop]](this); return colors[theme[prop]](this);
}); });