From 2477288bc0ccf23a70d3438cfb850cd902395dd8 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Thu, 1 Jul 2010 02:35:28 +0200 Subject: [PATCH] (minor) style fixes --- lib/less/browser.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/less/browser.js b/lib/less/browser.js index 8eff091..1d15343 100644 --- a/lib/less/browser.js +++ b/lib/less/browser.js @@ -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);