This commit is contained in:
Mirco Wittrien 2019-12-09 20:23:09 +01:00
parent 3d8ad5310b
commit 12474a0ec4
2 changed files with 7 additions and 7 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];
if (!module.BDFDBpatch[modulefunction]) {
module.BDFDBpatch[modulefunction] = {};
for (let type of WebModulesData.Patchtypes) module.BDFDBpatch[modulefunction][type] = {};
module.BDFDBpatch[modulefunction].originalMethod = originalfunction;
}
module[modulefunction] = function () {
const data = {
thisObject: this,

File diff suppressed because one or more lines are too long