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);
}
},