mirror of
https://github.com/less/less.js.git
synced 2026-01-22 21:58:14 -05:00
fix implicit vars
This commit is contained in:
committed by
Alexis Sellier
parent
93d8f9c364
commit
08b2b353a5
@@ -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) {
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user