mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
evaluate arguments, before passing them to a function
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user