Merge pull request #796 from comfuture/lessjs

fixed issue #795
This commit is contained in:
Sasha Sklar
2012-05-14 14:17:37 -07:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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 ($(':')) {

View File

@@ -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) {