From a0022a1cd6b1ffc024620ca7194df827d82bfcfd Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 5 May 2014 10:17:50 +0100 Subject: [PATCH] Refactoring more of startup.js into modules --- boot/boot.js | 25 ++++++++++---- core/modules/startup.js | 34 ------------------- core/modules/startup/favicon.js | 2 +- core/modules/startup/password.js | 47 ++++++++++++++++++++++++++ core/modules/startup/syncer-browser.js | 34 +++++++++++++++++++ plugins/tiddlywiki/fullscreen/init.js | 2 +- 6 files changed, 102 insertions(+), 42 deletions(-) create mode 100644 core/modules/startup/password.js create mode 100644 core/modules/startup/syncer-browser.js diff --git a/boot/boot.js b/boot/boot.js index ffe08d840..cfc75816f 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -1783,24 +1783,37 @@ console.log(s.join(" ")); return false; }; -$tw.boot.isStartupTaskEligible = function(taskModule) { - var t; - // Check that the platform is correct +/* +Returns true if we are running on one platforms specified in a task modules `platforms` array +*/ +$tw.boot.doesTaskMatchPlatform = function(taskModule) { var platforms = taskModule.platforms; if(platforms) { - for(t=0; t