cloudhead/less.js — Issue #460: Wrong mode for node.js
Author: marklagendijk
Created: 2011-11-14 12:51:17+00:00
State: open

Sorry that I am not doing this via a pull request, but I don't know how to use Git yet.
less.mode is set to 'rhino' when using node.js:

``` javascript
if (typeof environment === "object" && ({}).toString.call(environment) === "[object Environment]") {
// Rhino
// Details on how to detect Rhino: https://github.com/ringo/ringojs/issues/88
less = {};
tree = less.tree = {};
less.mode = 'rhino';
} else if (typeof(window) === 'undefined') {
// Node.js
less = exports,
tree = require('./tree');
less.mode = 'rhino';
}
```