[Pkg-javascript-commits] [less.js] 135/285: Fix browser if no less object specified
Jonas Smedegaard
dr at jones.dk
Mon Oct 26 23:23:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag v2.0.0
in repository less.js.
commit ff72e24ba5257173431b9af87a3a3ac4caf610fb
Author: Luke Page <luke.a.page at gmail.com>
Date: Mon Sep 22 20:31:25 2014 +0100
Fix browser if no less object specified
---
lib/less-browser/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/less-browser/index.js b/lib/less-browser/index.js
index 36c4cb4..6bfae4f 100644
--- a/lib/less-browser/index.js
+++ b/lib/less-browser/index.js
@@ -28,7 +28,7 @@ function log(str, level) {
*/
var isFileProtocol = /^(file|chrome(-extension)?|resource|qrc|app):/.test(location.protocol),
- options = window.less,
+ options = window.less || {},
environment = require("./environment")(options, isFileProtocol, log, logLevel);
window.less = less = require('../less')(environment);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git
More information about the Pkg-javascript-commits
mailing list