[Pkg-javascript-commits] [less.js] 29/38: Fix parse refactor - this passed to the plugin manager must be less

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:27:28 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 c4c365e613a68109aa33d7a14fc0041b3cf5c148
Author: Luke Page <luke.a.page at gmail.com>
Date:   Sat Jan 3 16:22:25 2015 +0000

    Fix parse refactor - this passed to the plugin manager must be less
---
 lib/less/render.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/less/render.js b/lib/less/render.js
index b4565a5..14e8af9 100644
--- a/lib/less/render.js
+++ b/lib/less/render.js
@@ -2,8 +2,6 @@ var PromiseConstructor = typeof Promise === 'undefined' ? require('promise') : P
 
 module.exports = function(environment, ParseTree, ImportManager) {
     var render = function (input, options, callback) {
-        var parse = require('./parse')(environment, ParseTree, ImportManager);
-
         if (typeof(options) === 'function') {
             callback = options;
             options = {};
@@ -21,7 +19,7 @@ module.exports = function(environment, ParseTree, ImportManager) {
                 });
             });
         } else {
-            parse(input, options, function(err, root, imports, options) {
+            this.parse(input, options, function(err, root, imports, options) {
                 if (err) { return callback(err); }
 
                 var result;

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