I’m trying to write a module that extends another one.
I can grab the instance, from _this.embedPlayer.plugins.otherModule, but it takes a while to initialize and I get undefined errors.
If I grab the instance during the onSelectSource event, I’m good to go but it doesn’t seem the right way and I’d rather get everything set up in the setup method.
Is there a load order? Or a load sequence I can manipulate?
Wouldn’t mw.PluginManager.get( ‘otherModule’ ) be a good method to have for this purpose?
I’d rather stick to the DRY principal and not include the library again in my other module if possible but if that’s the right way, I’m happy to do it.