fixed string eval
This commit is contained in:
parent
677ed7122a
commit
66d7c45a0c
@ -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') {
|
||||
if(val.is === "color" || val.is === 'uri' || val.is === 'string') {
|
||||
v = "'" + v + "'";
|
||||
} else if (val.is === 'field') {
|
||||
// replace [varuable] by ctx['variable']
|
||||
|
Loading…
Reference in New Issue
Block a user