[Pkg-javascript-commits] [less.js] 38/50: Fixes e("").
Jonas Smedegaard
dr at jones.dk
Mon Oct 26 23:22:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag v1.7.1
in repository less.js.
commit 7a1c534e1bf440e5db8b0d4d521d25cbcecf6b2d
Author: seven-phases-max <seven.phases.max at gmail.com>
Date: Sat May 17 21:29:10 2014 +0400
Fixes e("").
---
lib/less/functions.js | 2 +-
lib/less/tree/anonymous.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/less/functions.js b/lib/less/functions.js
index de758ea..0342591 100644
--- a/lib/less/functions.js
+++ b/lib/less/functions.js
@@ -221,7 +221,7 @@ tree.functions = {
}
},
e: function (str) {
- return new(tree.Anonymous)(str instanceof tree.JavaScript ? str.evaluated : str);
+ return new(tree.Anonymous)(str instanceof tree.JavaScript ? str.evaluated : str.value);
},
escape: function (str) {
return new(tree.Anonymous)(encodeURI(str.value).replace(/=/g, "%3D").replace(/:/g, "%3A").replace(/#/g, "%23").replace(/;/g, "%3B").replace(/\(/g, "%28").replace(/\)/g, "%29"));
diff --git a/lib/less/tree/anonymous.js b/lib/less/tree/anonymous.js
index 3cfae77..d6e5790 100644
--- a/lib/less/tree/anonymous.js
+++ b/lib/less/tree/anonymous.js
@@ -1,7 +1,7 @@
(function (tree) {
-tree.Anonymous = function (string, index, currentFileInfo, mapLines) {
- this.value = string.value || string;
+tree.Anonymous = function (value, index, currentFileInfo, mapLines) {
+ this.value = value;
this.index = index;
this.mapLines = mapLines;
this.currentFileInfo = 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