Skip to content

Commit

Permalink
Merge pull request #557 from kmchugh/master
Browse files Browse the repository at this point in the history
Fix for issue #466
  • Loading branch information
Alexis Sellier committed Jan 10, 2012
2 parents dc1c6c4 + e90fbdf commit 6196a22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/less/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = typeof(window) != 'undefined' ? window.less : {};
tree = less.tree = {};
less.mode = 'rhino';
} else if (typeof(window) === 'undefined') {
Expand Down

0 comments on commit 6196a22

Please sign in to comment.