(minor) style fixes

This commit is contained in:
cloudhead 2010-07-01 02:35:28 +02:00
parent 8bb17cc4b9
commit 2477288bc0

View File

@ -50,10 +50,11 @@ if (less.env === 'development') {
}
var cache;
try {
cache = (typeof(window.localStorage) === 'undefined') ? null : window.localStorage;
} catch (e) {
cache = null;
cache = (typeof(window.localStorage) === 'undefined') ? null : window.localStorage;
} catch (_) {
cache = null;
}
//
@ -174,8 +175,8 @@ function xhr(url, callback, errback) {
var xhr = getXMLHttpRequest();
var async = isFileProtocol ? false : less.async;
if (typeof xhr.overrideMimeType === 'function') {
xhr.overrideMimeType('text/css');
if (typeof(xhr.overrideMimeType) === 'function') {
xhr.overrideMimeType('text/css');
}
xhr.open('GET', url, async);
xhr.send(null);