parent
c65f57fa26
commit
c7395cd9d9
1 changed files with 1 additions and 1 deletions
|
@ -546,7 +546,7 @@ Pattern.prototype.resolveDependency = function (
|
||||||
} else if (Array.isArray(graph[part])) {
|
} else if (Array.isArray(graph[part])) {
|
||||||
if (graph[part].length === 0) return []
|
if (graph[part].length === 0) return []
|
||||||
else {
|
else {
|
||||||
if (deps.length === 0) deps = graph[part]
|
if (deps.indexOf(graph[part]) === -1) deps.push(...graph[part])
|
||||||
for (let apart of graph[part]) deps.concat(this.resolveDependency(seen, apart, graph, deps))
|
for (let apart of graph[part]) deps.concat(this.resolveDependency(seen, apart, graph, deps))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue