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.
This commit is contained in:
Matthijs Kooijman 2024-06-18 09:32:35 +02:00
parent a8f9c263a2
commit a3194a3bb8

View file

@ -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) {