mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
fixed bug with passing variables to functions
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user