cloudhead/less.js — pull request #1044 by acecode (2012-11-22 21:26:16+00:00)
Title: I found a easier way to make rhino version of less 1.3.1

just change the arguments of the MAIN function of less 1.3.1;
by giving fake window, document;

1.define location.port is enough, cause only location.* and location.port.length were used;
2.when document.getElementsByName return empty Array to links,
it won't trigger other document functions;

always use window.location instead of location
(replacing 4 location to window.location in MAIN function);

Use WIN.less instead of less in rhino function