Update BDFDB.js
This commit is contained in:
parent
44d4474acc
commit
927f14aa08
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue