Fix '@arguments' behaviour, Closes #632

`.mixin` & `.mixin()` had differing behaviours.
This commit is contained in:
Alexis Sellier
2012-02-28 17:06:45 +01:00
parent 5ccf1dafec
commit 598b249101
3 changed files with 7 additions and 1 deletions

View File

@@ -763,7 +763,7 @@ less.Parser = function Parser(env) {
}
if (elements.length > 0 && ($(';') || peek('}'))) {
return new(tree.mixin.Call)(elements, args, index, env.filename, important);
return new(tree.mixin.Call)(elements, args || [], index, env.filename, important);
}
},

View File

@@ -59,6 +59,9 @@ body {
.arguments2 {
border: 0px;
}
.arguments3 {
border: 0px;
}
.edge-case {
border: "{";
}

View File

@@ -116,6 +116,9 @@ body {
.arguments2 {
.mixin-arguments();
}
.arguments3 {
.mixin-arguments;
}
// Edge cases