fix options ignored in less.render

This commit is contained in:
cloudhead
2011-02-25 18:55:04 -05:00
parent e199ac8c8e
commit cc88b975bb

View File

@@ -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;