From a3194a3bb8bde765774359e1f4608c395e787216 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 18 Jun 2024 09:32:35 +0200 Subject: [PATCH] custom-module: Fix example for unload with nested modules The unload method is actually called on all modules, not just the main one, so it makes no sense to have the module merger example call it explicitly on its submodules. --- resources/docs/docs/custom-module/examples.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/resources/docs/docs/custom-module/examples.md b/resources/docs/docs/custom-module/examples.md index 5fa3eb3e..b6e605cf 100644 --- a/resources/docs/docs/custom-module/examples.md +++ b/resources/docs/docs/custom-module/examples.md @@ -378,11 +378,6 @@ module.exports = { if (m.init) m.init() } }, - unload: function(){ - for (var m of submodules) { - if (m.unload) m.unload() - } - }, oscInFilter: function(data){ for (var m of submodules) {