Fix infinite recursive loop _findFileInRoot
This commit is contained in:
parent
76e2f63c5a
commit
1b6b9c2126
@ -353,11 +353,13 @@ define([
|
|||||||
}
|
}
|
||||||
return paths;
|
return paths;
|
||||||
}
|
}
|
||||||
|
if (isFolder(root)) {
|
||||||
for (var e in root) {
|
for (var e in root) {
|
||||||
var nPath = path.slice();
|
var nPath = path.slice();
|
||||||
nPath.push(e);
|
nPath.push(e);
|
||||||
_findFileInRoot(nPath, file).forEach(addPaths);
|
_findFileInRoot(nPath, file).forEach(addPaths);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return paths;
|
return paths;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user