[Pkg-javascript-commits] [less.js] 19/25: Merge pull request #1921 from rback/master

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


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

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

commit dc691d6896478be8bb72239e1de5632e5576638e
Merge: c4ed706 ef1566c
Author: Luke Page <luke.a.page at gmail.com>
Date:   Mon Aug 25 12:21:09 2014 +0100

    Merge pull request #1921 from rback/master
    
    Pass options object to parser.parse in less.render

 lib/less/index.js   |  4 ++--
 test/modify-vars.js | 17 +++++++++++++++++
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --cc lib/less/index.js
index 1324c6c,3be8672..5ddfa4c
--- a/lib/less/index.js
+++ b/lib/less/index.js
@@@ -24,19 -24,19 +24,19 @@@ var less = 
                  var css;
                  try {
                      css = root && root.toCSS && root.toCSS(options);
 -                } 
 +                }
                  catch (err) { callback(err); return; }
                  callback(null, css);
-             });
+             }, options);
          } else {
              ee = new (require('events').EventEmitter)();
  
              process.nextTick(function () {
                  parser.parse(input, function (e, root) {
                      if (e) { return ee.emit('error', e); }
 -                    try { ee.emit('success', root.toCSS(options)); } 
 +                    try { ee.emit('success', root.toCSS(options)); }
                      catch (err) { ee.emit('error', err); }
-                 });
+                 }, options);
              });
              return ee;
          }

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