mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-16 14:51:24 +00:00
Refactoring module mechanism
Changed the data structure $tw.modules.types to make it possible to detect repeated registrations
This commit is contained in:
@@ -88,10 +88,9 @@ $tw.plugins.dropbox.login = function() {
|
||||
Invoke any dropbox-startup modules
|
||||
*/
|
||||
$tw.plugins.dropbox.invokeDropboxStartupModules = function(loggedIn) {
|
||||
var mods = $tw.modules.types["dropbox-startup"];
|
||||
for(var m=0; m<mods.length; m++) {
|
||||
mods[m].startup(loggedIn);
|
||||
}
|
||||
$tw.modules.forEachModuleOfType("dropbox-startup",function(title,module) {
|
||||
module.startup(loggedIn);
|
||||
});
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user