(minor) formatting

This commit is contained in:
cloudhead
2010-05-18 21:16:44 -04:00
parent e501f2e47c
commit 70045e9c4b
2 changed files with 8 additions and 5 deletions

View File

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

View File

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