This commit is contained in:
Mirco Wittrien 2019-10-29 19:52:17 +01:00
parent 9bb86ef9d4
commit c1c1e357eb
2 changed files with 2 additions and 2 deletions

View File

@ -1343,7 +1343,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins || {}, cleanUps: BDFDB && BDFDB
type = type.charAt(0).toUpperCase() + type.slice(1);
if (typeof plugin["process" + type] == "function") {
// REMOVE
let isOldType = plugin["process" + type].toString().split("\n")[0].replace(/ /g, "").split(",")[2] == "returnvalue";
let isOldType = (plugin["process" + type].toString().split("\n")[0].replace(/ /g, "").split(",")[2] || "").indexOf("returnvalue") > -1;
if (isOldType) {
if (e.methodname == "render") {
if (e.returnvalue) plugin["process" + type](e.instance, null, e.returnvalue, [e.methodname]);

File diff suppressed because one or more lines are too long