1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-07 21:36:06 +00:00

Pull more of startup.js out into separate modules

This commit is contained in:
Jermolene
2014-05-03 21:23:51 +01:00
parent b9dec37fb7
commit 519e1b4a44
6 changed files with 203 additions and 134 deletions

View File

@@ -1750,7 +1750,17 @@ $tw.boot.executeNextStartupTask = function() {
if($tw.boot.isStartupTaskEligible(task)) {
// Remove this task from the list
$tw.boot.remainingStartupModules.splice(taskIndex,1);
console.log("Executing task",task.name);
var s = ["Executing task:",task.name];
if(task.platforms) {
s.push("platforms:",task.platforms.join(","));
}
if(task.after) {
s.push("after:",task.after.join(","));
}
if(task.before) {
s.push("before:",task.before.join(","));
}
console.log(s.join(" "));
// Execute it
if(!$tw.utils.hop(task,"synchronous") || task.synchronous) {
task.startup();