[Pkg-javascript-commits] [less.js] 09/38: also fix data-uri when in a sub-directory and a mixin with relative paths

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:27:24 UTC 2015


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

js pushed a commit to annotated tag v2.2.0
in repository less.js.

commit 3f6abd18fe8f8f671b2afed6b085ee0939a984c0
Author: Luke Page <luke.a.page at gmail.com>
Date:   Thu Jan 1 16:50:40 2015 +0000

    also fix data-uri when in a sub-directory and a mixin with relative paths
---
 lib/less/functions/data-uri.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/less/functions/data-uri.js b/lib/less/functions/data-uri.js
index dd2304b..2461a30 100644
--- a/lib/less/functions/data-uri.js
+++ b/lib/less/functions/data-uri.js
@@ -1,5 +1,5 @@
 module.exports = function(environment) {
-    var Anonymous = require("../tree/anonymous"),
+    var Quoted = require("../tree/quoted"),
         URL = require("../tree/url"),
         functionRegistry = require("./function-registry"),
         fallback = function(functionThis, node) {
@@ -71,7 +71,7 @@ module.exports = function(environment) {
         buf = useBase64 ? buf.toString('base64')
             : encodeURIComponent(buf);
 
-        var uri = "\"data:" + mimetype + ',' + buf + fragment + "\"";
-        return new URL(new Anonymous(uri), this.index, this.currentFileInfo);
+        var uri = "data:" + mimetype + ',' + buf + fragment;
+        return new URL(new Quoted('"' + uri + '"', uri, false, this.index, this.currentFileInfo), this.index, this.currentFileInfo);
     });
 };

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