Update BDFDB.js

This commit is contained in:
Mirco Wittrien 2020-01-31 09:33:13 +01:00
parent 44d4474acc
commit 927f14aa08
1 changed files with 3 additions and 4 deletions

View File

@ -1261,17 +1261,16 @@
}
}
else {
if (e.methodname == "render" || e.methodname == "default" || e.methodname == "type") {
if (e.returnvalue || e.patchtypes.includes("before")) plugin["process" + type](e);
}
else {
if (typeof e.methodname == "string" && (e.methodname.indexOf("componentDid") == 0 || e.methodname.indexOf("componentWill") == 0)) {
e.node = BDFDB.ReactUtils.findDOMNode(e.instance);
if (e.node) plugin["process" + type](e);
else BDFDB.TimeUtils.timeout(_ => {
e.node = BDFDB.ReactUtils.findDOMNode(e.instance);
if (e.node) plugin["process" + type](e);
});
}
else if (e.returnvalue || e.patchtypes.includes("before")) plugin["process" + type](e);
}
}
}