| 94 | this.queue.push(path); |
| 95 | |
| 96 | var fileParsedFunc = function (e, root, fullPath) { |
| 97 | parserImports.queue.splice(parserImports.queue.indexOf(path), 1); // Remove the path from the queue |
| 98 | |
| 99 | var importedPreviously = fullPath in parserImports.files || fullPath === rootFilename; |
| 100 | |
| 101 | parserImports.files[fullPath] = root; // Store the root |
| 102 | |
| 103 | if (e && !parserImports.error) { parserImports.error = e; } |
| 104 | |
| 105 | callback(e, root, importedPreviously, fullPath); |
| 106 | }; |
| 107 | |
| 108 | if (less.Parser.importer) { |
| 109 | less.Parser.importer(path, currentFileInfo, fileParsedFunc, env); |