From b144fc59eb0cfdbc7f50b7fd08a02dcd3d3a533f Mon Sep 17 00:00:00 2001 From: John Reading Date: Fri, 11 May 2012 13:24:30 -0400 Subject: [PATCH 1/2] fix for unamed parameter --- lib/less/tree/mixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/less/tree/mixin.js b/lib/less/tree/mixin.js index 45948a87..b441bf3b 100644 --- a/lib/less/tree/mixin.js +++ b/lib/less/tree/mixin.js @@ -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) { From 664a8d713ce130efa1120f31d2bd18db13ed33c3 Mon Sep 17 00:00:00 2001 From: John Reading Date: Fri, 11 May 2012 13:52:15 -0400 Subject: [PATCH 2/2] failing test for 88915649179c879048677f6b8d213b4b2756f676 --- test/css/import-once.css | 9 +++++++++ test/less/import-once.less | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 test/css/import-once.css create mode 100644 test/less/import-once.less diff --git a/test/css/import-once.css b/test/css/import-once.css new file mode 100644 index 00000000..3a1ae250 --- /dev/null +++ b/test/css/import-once.css @@ -0,0 +1,9 @@ +@import "import-test-d.css"; + +.mixin { + height: 10px; + color: #ff0000; +} +#import { + color: #ff0000; +} diff --git a/test/less/import-once.less b/test/less/import-once.less new file mode 100644 index 00000000..739900a6 --- /dev/null +++ b/test/less/import-once.less @@ -0,0 +1,3 @@ +@import-once "import/import-test-a"; +@import-once "import/import-test-b"; +@import-once "import/import-test-c"; \ No newline at end of file