Permalink
Browse files

Fix to allow compilation with rhino while using asual lesscss engine

  • Loading branch information...
1 parent dc1c6c4 commit 39f277f7267c0b36f2e82a02728dfcf139ec8d15 @kmchugh kmchugh committed Jan 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/less/parser.js
View
@@ -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') {

0 comments on commit 39f277f

Please sign in to comment.