evaluate arguments, before passing them to a function

This commit is contained in:
cloudhead 2010-03-01 21:48:46 -05:00
parent 2682b6dc16
commit 46060d466f

View File

@ -6,6 +6,7 @@ tree.Call = function Call(name, args) {
};
tree.Call.prototype = {
toCSS: function (context, env) {
return tree.functions[this.name].apply(tree.functions, this.args).toCSS();
var args = this.args.map(function (a) { return a.eval() });
return tree.functions[this.name].apply(tree.functions, args).toCSS();
}
};