From 4135bbccbe5f0b26108ea613d3d8297dc8ef1da6 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Mon, 14 Jun 2010 21:20:04 -0400 Subject: [PATCH] cleanup browser.js --- lib/less/browser.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/less/browser.js b/lib/less/browser.js index 8d1726e2..2864f818 100644 --- a/lib/less/browser.js +++ b/lib/less/browser.js @@ -1,8 +1,4 @@ (function () { -// -// Select all links with the 'rel' attribute set to "less" -// -var sheets = []; less.env = location.hostname == '127.0.0.1' || location.hostname == '0.0.0.0' || @@ -14,7 +10,10 @@ less.env = location.hostname == '127.0.0.1' || less.watch = function () { return this.watchMode = true }; less.unwatch = function () { return this.watchMode = false }; -sheets = select('link[rel="stylesheet/less"]'); +// +// Select all links with the 'rel' attribute set to "less" +// +var sheets = select('link[rel="stylesheet/less"]'); loadStyleSheets(function (root, sheet, env) { if (env.local) {