mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
(minor) formatting
This commit is contained in:
@@ -2,10 +2,12 @@
|
||||
// Select all links with the 'rel' attribute set to "less"
|
||||
//
|
||||
var sheets = [];
|
||||
if(!document.querySelectorAll && typeof(jQuery) === "undefined")
|
||||
|
||||
if (!document.querySelectorAll && typeof(jQuery) === "undefined") {
|
||||
log("No selector method found");
|
||||
else
|
||||
} else {
|
||||
sheets = (document.querySelectorAll || jQuery).call(document, 'link[rel="stylesheet/less"]');
|
||||
}
|
||||
|
||||
less.env = location.hostname == '127.0.0.1' ||
|
||||
location.hostname == '0.0.0.0' ||
|
||||
|
||||
@@ -139,10 +139,11 @@ less.Parser = function Parser(env) {
|
||||
i++;
|
||||
}
|
||||
|
||||
if(typeof(match) === 'string')
|
||||
if(typeof(match) === 'string') {
|
||||
return match;
|
||||
|
||||
return match.length === 1 ? match[0] : match;
|
||||
} else {
|
||||
return match.length === 1 ? match[0] : match;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user