mirror of
https://github.com/less/less.js.git
synced 2026-02-05 20:44:58 -05:00
Fix to allow compilation with rhino while using asual lesscss engine
This commit is contained in:
@@ -3,7 +3,8 @@ var less, tree;
|
||||
if (typeof environment === "object" && ({}).toString.call(environment) === "[object Environment]") {
|
||||
// Rhino
|
||||
// Details on how to detect Rhino: https://github.com/ringo/ringojs/issues/88
|
||||
less = {};
|
||||
if (typeof(window) === 'undefined') { window.less = {} }
|
||||
less = window.less || {};
|
||||
tree = less.tree = {};
|
||||
less.mode = 'rhino';
|
||||
} else if (typeof(window) === 'undefined') {
|
||||
|
||||
Reference in New Issue
Block a user