Fix to allow compilation with rhino while using asual lesscss engine

This commit is contained in:
Ken McHugh
2012-01-10 20:22:34 +08:00
parent dc1c6c4555
commit 39f277f726

View File

@@ -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') {