evaluate Values of length > 1 properly

This commit is contained in:
cloudhead 2010-05-06 09:46:36 -07:00
parent fb393e8f62
commit 3c89d3b9bd

View File

@ -30,7 +30,9 @@ tree.Value.prototype = {
return this.value[0].eval ? this.value[0].eval(env)
: this.value[0];
} else {
return this;
return new(tree.Value)(this.value.map(function (v) {
return v.eval(env);
}));
}
},
toCSS: function (env) {