mirror of
https://github.com/less/less.js.git
synced 2026-02-05 20:44:58 -05:00
@@ -766,7 +766,7 @@ less.Parser = function Parser(env) {
|
||||
name = null;
|
||||
|
||||
// Variable
|
||||
if (arg.value.length = 1) {
|
||||
if (arg.value.length == 1) {
|
||||
var val = arg.value[0];
|
||||
if (val instanceof tree.Variable) {
|
||||
if ($(':')) {
|
||||
|
||||
@@ -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