[Pkg-javascript-commits] [less.js] 228/285: Tidy Import Visitor arguments

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:23:57 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 5913834cc1ebf0396fb4c3a3c84d1f3df92ec064
Author: Luke Page <luke.a.page at gmail.com>
Date:   Thu Oct 23 21:46:04 2014 +0100

    Tidy Import Visitor arguments
---
 lib/less/visitors/import-visitor.js | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/lib/less/visitors/import-visitor.js b/lib/less/visitors/import-visitor.js
index ebf6767..255ac72 100644
--- a/lib/less/visitors/import-visitor.js
+++ b/lib/less/visitors/import-visitor.js
@@ -2,24 +2,16 @@ var contexts = require("../contexts"),
     Visitor = require("./visitor"),
     ImportSequencer = require("./import-sequencer");
 
-var ImportVisitor = function(importer, finish, evalEnv, onceFileDetectionMap, recursionDetector) {
-    // TODO arguments not all necessary now
+var ImportVisitor = function(importer, finish) {
 
     this._visitor = new Visitor(this);
     this._importer = importer;
     this._finish = finish;
     // TODO probably doesnt need to be an array
-    this.contextStack = [evalEnv || new contexts.Eval()];
+    this.contextStack = [new contexts.Eval()];
     this.importCount = 0;
-    this.onceFileDetectionMap = onceFileDetectionMap || {};
+    this.onceFileDetectionMap = {};
     this.recursionDetector = {};
-    if (recursionDetector) {
-        for(var fullFilename in recursionDetector) {
-            if (recursionDetector.hasOwnProperty(fullFilename)) {
-                this.recursionDetector[fullFilename] = true;
-            }
-        }
-    }
     this._sequencer = new ImportSequencer();
 };
 

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