From 08b2b353a58fabc75a3400628e9f2de833e79c03 Mon Sep 17 00:00:00 2001 From: Matt Quail Date: Sat, 19 Feb 2011 16:42:00 -0500 Subject: [PATCH] fix implicit vars --- lib/less/browser.js | 3 ++- lib/less/parser.js | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/less/browser.js b/lib/less/browser.js index b042dc97..d934c635 100644 --- a/lib/less/browser.js +++ b/lib/less/browser.js @@ -74,7 +74,8 @@ for (var i = 0; i < links.length; i++) { less.refresh = function (reload) { - var startTime = endTime = new(Date); + var startTime, endTime; + startTime = endTime = new(Date); loadStyleSheets(function (root, sheet, env) { if (env.local) { diff --git a/lib/less/parser.js b/lib/less/parser.js index 597b6f27..2512cbd3 100644 --- a/lib/less/parser.js +++ b/lib/less/parser.js @@ -94,7 +94,7 @@ less.Parser = function Parser(env) { // Parse from a token, regexp or string, and move forward if match // function $(tok) { - var match, args, length, c, index, endIndex, k; + var match, args, length, c, index, endIndex, k, mem; // // Non-terminal @@ -766,7 +766,7 @@ less.Parser = function Parser(env) { // and an element name, such as a tag a class, or `*`. // element: function () { - var e, t; + var e, t, c; c = $(this.combinator); e = $(/^(?:[.#]?|:*)(?:[\w-]|\\(?:[a-fA-F0-9]{1,6} ?|[^a-fA-F0-9]))+/) || $('*') || $(this.attribute) || $(/^\([^)@]+\)/); @@ -879,7 +879,7 @@ less.Parser = function Parser(env) { } }, rule: function () { - var name, value, c = input.charAt(i), important; + var name, value, c = input.charAt(i), important, match; save(); if (c === '.' || c === '#' || c === '&') { return }