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:
parent
a8f9c263a2
commit
a3194a3bb8
1 changed files with 0 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue