1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-04 20:08:02 +00:00

Split module loading into a separate startup task

Still a work in progress.
This commit is contained in:
Jermolene
2014-05-03 17:10:55 +01:00
parent 1c82348edb
commit 749582ede0
5 changed files with 43 additions and 27 deletions

View File

@@ -1773,10 +1773,10 @@ $tw.boot.executeNextStartupTask = function() {
};
$tw.boot.isStartupTaskEligible = function(taskModule) {
var dependencies = taskModule.dependencies;
if(dependencies) {
for(var t=0; t<dependencies.length; t++) {
if(!$tw.boot.executedStartupModules[dependencies[t]]) {
var after = taskModule.after;
if(after) {
for(var t=0; t<after.length; t++) {
if(!$tw.boot.executedStartupModules[after[t]]) {
return false;
}
}