Currently a module in UMC does nothing until it is opened. It would be nice if some (defined) functions would be called during setupGui() in app.js. This would make hard coded checks in app.js like _checkJoinStatus() unnecessary. We could implement it where it belongs: In the join module. We could also add invisible modules that can interoperate with out notification system. We could also add some keywords to the UMC overview searchSideBar for every module (e.g. titles of tabs, names of UDM submodules, etc.) Example: return declare("umc.modules.mymodule", [ Module ], { callOnSetup: ['addNotification'], title: 'My Module', addNotification: function() { // be careful with "this". working on prototype! // better not setting anything dialog.notify('Hi, open me - my name is ' + this.title); } }
We may want to call those function with the the App itself so that those functions can manipulate the _settingsMenu and the _searchSideBar
*** This bug has been marked as a duplicate of bug 33147 ***