evaluate Values of length > 1 properly

This commit is contained in:
cloudhead
2010-05-06 09:46:36 -07:00
parent cdeb9ea29a
commit 50e76c3912

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) {