This commit is contained in:
Mirco Wittrien 2019-12-09 20:26:38 +01:00
parent 12474a0ec4
commit 5ee65921cb
2 changed files with 3 additions and 3 deletions

View File

@ -1072,13 +1072,13 @@
modulefunctions = [modulefunctions].flat(10).filter(n => n);
for (let modulefunction of modulefunctions) {
if (!module[modulefunction]) module[modulefunction] = _ => {};
const originalfunction = module[modulefunction];
if (!module.BDFDBpatch[modulefunction]) {
module.BDFDBpatch[modulefunction] = {};
for (let type of WebModulesData.Patchtypes) module.BDFDBpatch[modulefunction][type] = {};
module.BDFDBpatch[modulefunction].originalMethod = originalfunction;
}
if (!module[modulefunction].isBDFDBpatched) {
const originalfunction = module[modulefunction];
module.BDFDBpatch[modulefunction].originalMethod = originalfunction;
module[modulefunction] = function () {
const data = {
thisObject: this,

File diff suppressed because one or more lines are too long