From b9ae0f54f571d025eaefdf99ce94bdc66ebc89c1 Mon Sep 17 00:00:00 2001 From: abe33 Date: Tue, 8 Sep 2015 15:16:01 +0200 Subject: [PATCH] :bug: Use cache when reading DOM for color when highlighting is disabled Fixes #384 --- lib/mixins/canvas-drawer.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mixins/canvas-drawer.coffee b/lib/mixins/canvas-drawer.coffee index 90d36026..1a4733d6 100644 --- a/lib/mixins/canvas-drawer.coffee +++ b/lib/mixins/canvas-drawer.coffee @@ -64,7 +64,7 @@ class CanvasDrawer extends Mixin # # Returns a {String}. getDefaultColor: -> - color = @retrieveStyleFromDom(['.editor'], 'color', false, false) + color = @retrieveStyleFromDom(['.editor'], 'color', false, true) @transparentize(color, @getTextOpacity()) # Returns the text color for the passed-in `token` object.