From 6a6353f9cd7045525b02caf86c92b30fabe3a8dd Mon Sep 17 00:00:00 2001 From: Marak Date: Wed, 1 Oct 2014 18:06:04 +0200 Subject: [PATCH] [fix] Map themes to safe api even if module is being used in normal mode #82 --- lib/extendStringPrototype.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/extendStringPrototype.js b/lib/extendStringPrototype.js index 97e7c6c..241157d 100644 --- a/lib/extendStringPrototype.js +++ b/lib/extendStringPrototype.js @@ -78,6 +78,7 @@ module['exports'] = function () { } else { if (typeof(theme[prop]) === 'string') { + colors[prop] = colors[theme[prop]]; addProperty(prop, function () { return colors[theme[prop]](this); });