fixed keywords

This commit is contained in:
javi 2013-11-26 18:39:07 +01:00
parent 834985ba81
commit f45aa875b7

View File

@ -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']