From f45aa875b77e0f503843a26797b703ef72d5214f Mon Sep 17 00:00:00 2001 From: javi Date: Tue, 26 Nov 2013 18:39:07 +0100 Subject: [PATCH] fixed keywords --- lib/carto/renderer_js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/carto/renderer_js.js b/lib/carto/renderer_js.js index 2e87ea5..2a71700 100644 --- a/lib/carto/renderer_js.js +++ b/lib/carto/renderer_js.js @@ -7,7 +7,7 @@ tree.Value.prototype.toJS = function() { //var v = this.value[0].value[0]; var val = this.eval() var v = val.toString(); - if(val.is === "color" || val.is === 'uri' || val.is === 'string') { + if(val.is === "color" || val.is === 'uri' || val.is === 'string' || val.is === 'keyword') { v = "'" + v + "'"; } else if (val.is === 'field') { // replace [varuable] by ctx['variable']