From 46060d466f498e44bc501b5c06385f70ef44a6d0 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Mon, 1 Mar 2010 21:48:46 -0500 Subject: [PATCH] evaluate arguments, before passing them to a function --- lib/less/node/call.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/less/node/call.js b/lib/less/node/call.js index 1bc0300..d36cca6 100644 --- a/lib/less/node/call.js +++ b/lib/less/node/call.js @@ -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(); } };