This commit is contained in:
Mirco Wittrien 2020-03-24 15:38:37 +01:00
parent 02664bf648
commit 7a98d48ca1
2 changed files with 3 additions and 3 deletions

View File

@ -1712,7 +1712,7 @@
return getChildren(instance);
function getChildren (children) {
let result = null;
if (!children) return result;
if (!children || depth >= maxDepth && performance.now() - start >= maxTime) return result;
if (!BDFDB.ArrayUtils.is(children)) {
if (check(children)) result = children;
else if (children.props && children.props.children) {
@ -1763,7 +1763,7 @@
return getChildren(instance);
function getChildren (children) {
let result = [firstArray, -1];
if (!children || depth >= maxDepth && performance.now() - start >= maxTime) return result;
if (!children) return result;
if (!BDFDB.ArrayUtils.is(children)) {
if (check(children)) result = found(children);
else if (children.props && children.props.children) {

File diff suppressed because one or more lines are too long