[Pkg-javascript-commits] [less.js] 120/285: tree/directive.js: fix incorrect accept() code

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:23:45 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 1ecce8b3cac4b00d7491c43764b313ad3406051a
Author: Max Mikhailov <seven.phases.max at gmail.com>
Date:   Wed Sep 17 11:45:57 2014 +0400

    tree/directive.js: fix incorrect accept() code
    
    Fixes #2191.
---
 lib/less/tree/directive.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/less/tree/directive.js b/lib/less/tree/directive.js
index b39df71..c69eee2 100644
--- a/lib/less/tree/directive.js
+++ b/lib/less/tree/directive.js
@@ -18,10 +18,10 @@ Directive.prototype.type = "Directive";
 Directive.prototype.accept = function (visitor) {
     var value = this.value, rules = this.rules;
     if (rules) {
-        rules = visitor.visit(rules);
+        this.rules = visitor.visit(rules);
     }
     if (value) {
-        value = visitor.visit(value);
+        this.value = visitor.visit(value);
     }
 };
 Directive.prototype.isRulesetLike = function() {

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