We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f173ed commit 1453b3fCopy full SHA for 1453b3f
modules/DependencyControl.moon
@@ -345,7 +345,7 @@ class DependencyControl
345
._ref, LOADED_MODULES[moduleName] = res, res
346
347
-- run initialization function if one was specified
348
- if "table" == type(res) and "function" == type res.__depCtrlInit
+ if "table" == type(res) and "function" == type res.__depCtrlInit and (type(res.version) != "table" or res.version.__name != @@__name)
349
res.__depCtrlInit @@
350
351
return mdl._ref -- having this in the with block breaks moonscript
0 commit comments