[Pkg-javascript-commits] [less.js] 147/285: Fix svg function in browser

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:23:48 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 27494c280e3c52e50af7a41652e1766ddab3ece2
Author: Luke Page <luke.a.page at gmail.com>
Date:   Sat Oct 4 18:49:12 2014 +0100

    Fix svg function in browser
---
 lib/less/environment/environment.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/less/environment/environment.js b/lib/less/environment/environment.js
index 4508cf6..aeb8805 100644
--- a/lib/less/environment/environment.js
+++ b/lib/less/environment/environment.js
@@ -1,7 +1,6 @@
 var environment = function(externalEnvironment, fileManagers) {
     this.fileManagers = fileManagers || [];
-    var functions = ["warn", "encodeBase64", "mimeLookup", "charsetLookup", "getSourceMapGenerator"],
-        emptyFunc = function() {};
+    var functions = ["warn", "encodeBase64", "mimeLookup", "charsetLookup", "getSourceMapGenerator"];
 
     for(var i = 0; i < functions.length; i++) {
         var propName = functions[i],
@@ -9,12 +8,14 @@ var environment = function(externalEnvironment, fileManagers) {
         if (environmentFunc) {
             this[propName] = environmentFunc.bind(externalEnvironment);
         } else {
-            this[propName] = emptyFunc;
             this.warn("missing function in environment - " + propName);
         }
     }
 };
 
+environment.prototype.warn = function (msg) {
+};
+
 environment.prototype.getFileManager = function (filename, currentDirectory, options, environment, isSync) {
     for(var i = this.fileManagers.length - 1; i >= 0 ; i--) {
         var fileManager = this.fileManagers[i];

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