From e199ac8c8e5fdd21366b2482fed2ce97eb9de0c8 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Mon, 31 Jan 2011 14:10:37 +0000 Subject: [PATCH] (new) JavaScript-style 'arguments' variable --- lib/less/tree/mixin.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/less/tree/mixin.js b/lib/less/tree/mixin.js index ac74a374..2d2578a6 100644 --- a/lib/less/tree/mixin.js +++ b/lib/less/tree/mixin.js @@ -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) });