From cc88b975bbbac6496d672ebb96c3bc41fa511559 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Fri, 25 Feb 2011 18:55:04 -0500 Subject: [PATCH] fix options ignored in less.render --- lib/less/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/less/index.js b/lib/less/index.js index 6eea8c72..ebcfd0db 100644 --- a/lib/less/index.js +++ b/lib/less/index.js @@ -21,7 +21,7 @@ var less = { if (callback) { parser.parse(input, function (e, root) { - callback(e, root.toCSS()); + callback(e, root.toCSS(options)); }); } else { ee = new(require('events').EventEmitter); @@ -29,7 +29,7 @@ var less = { process.nextTick(function () { parser.parse(input, function (e, root) { if (e) { ee.emit('error', e) } - else { ee.emit('success', root.toCSS()) } + else { ee.emit('success', root.toCSS(options)) } }); }); return ee;