mirror of
https://github.com/less/less.js.git
synced 2026-01-23 22:27:57 -05:00
fix options ignored in less.render
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user