mirror of
https://github.com/less/less.js.git
synced 2026-02-06 04:55:03 -05:00
fix for unamed parameter
This commit is contained in:
@@ -87,7 +87,7 @@ tree.mixin.Definition.prototype = {
|
||||
if (this.params[i].variadic && args) {
|
||||
varargs = [];
|
||||
for (var j = i; j < args.length; j++) {
|
||||
varargs.push(args[j].eval(env));
|
||||
varargs.push(args[j].value.eval(env));
|
||||
}
|
||||
frame.rules.unshift(new(tree.Rule)(name, new(tree.Expression)(varargs).eval(env)));
|
||||
} else if (val = (arg && arg.value) || this.params[i].value) {
|
||||
|
||||
Reference in New Issue
Block a user