mirror of
https://github.com/less/less.js.git
synced 2026-01-22 21:58:14 -05:00
(new) JavaScript-style 'arguments' variable
This commit is contained in:
@@ -74,6 +74,8 @@ tree.mixin.Definition.prototype = {
|
||||
}
|
||||
}
|
||||
}
|
||||
frame.rules.unshift(new(tree.Rule)('@arguments', new(tree.Expression)(args)));
|
||||
|
||||
return new(tree.Ruleset)(null, this.rules.slice(0)).eval({
|
||||
frames: [this, frame].concat(this.frames, env.frames)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user