[Pkg-javascript-commits] [less.js] 05/09: suport passing strings to paths

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:22:45 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag v1.7.2
in repository less.js.

commit 0c2c1b2ba3036c62be5fc4e6232d3c0493559764
Author: Luke Page <luke.a.page at gmail.com>
Date:   Wed Jun 18 06:04:34 2014 +0100

    suport passing strings to paths
---
 lib/less/env.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/less/env.js b/lib/less/env.js
index 10c7302..d647e20 100644
--- a/lib/less/env.js
+++ b/lib/less/env.js
@@ -36,6 +36,8 @@
         if (!this.contentsIgnoredChars) { this.contentsIgnoredChars = {}; }
         if (!this.files) { this.files = {}; }
 
+        if (typeof this.paths === "string") { this.paths = [this.paths]; }
+
         if (!this.currentFileInfo) {
             var filename = (options && options.filename) || "input";
             var entryPath = filename.replace(/[^\/\\]*$/, "");

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