fixed bug with passing variables to functions

This commit is contained in:
cloudhead
2010-04-23 13:49:55 -04:00
parent d0b5f6f214
commit fee1e305f0
3 changed files with 4 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ tree.Call.prototype = {
// The function should receive the value, not the variable.
//
toCSS: function (context, env) {
var args = this.args.map(function (a) { return a.eval() });
var args = this.args.map(function (a) { return a.eval(context) });
if (this.name in tree.functions) { // 1.
return tree.functions[this.name].apply(tree.functions, args).toCSS();