fix implicit vars

This commit is contained in:
Matt Quail
2011-02-19 16:42:00 -05:00
committed by Alexis Sellier
parent 93d8f9c364
commit 08b2b353a5
2 changed files with 5 additions and 4 deletions

View File

@@ -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) {

View File

@@ -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 }