mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-12 13:53:13 +00:00
Remove initSyncers() from wiki.js
This commit is contained in:
parent
71aa79013d
commit
17a9cdd1e3
@ -28,7 +28,6 @@ exports.startup = function() {
|
||||
$tw.modules.applyMethods("tiddlerdeserializer",$tw.Wiki.tiddlerDeserializerModules);
|
||||
// Set up the wiki store
|
||||
$tw.wiki.initParsers();
|
||||
$tw.wiki.initSyncers();
|
||||
// Set up the command modules
|
||||
$tw.Commander.initCommands();
|
||||
// Get the default tiddlers
|
||||
@ -73,6 +72,15 @@ exports.startup = function() {
|
||||
downloadType: "text/plain"
|
||||
});
|
||||
},false);
|
||||
// Install syncers
|
||||
$tw.syncers = {};
|
||||
$tw.modules.forEachModuleOfType("syncer",function(title,module) {
|
||||
if(module.name && module.syncer) {
|
||||
$tw.syncers[module.name] = new module.syncer({
|
||||
wiki: $tw.wiki
|
||||
});
|
||||
}
|
||||
});
|
||||
// Install the crypto event handlers
|
||||
document.addEventListener("tw-set-password",function(event) {
|
||||
$tw.passwordPrompt.createPrompt({
|
||||
|
@ -587,21 +587,6 @@ exports.search = function(text,options) {
|
||||
return results;
|
||||
};
|
||||
|
||||
/*
|
||||
Initialise syncers
|
||||
*/
|
||||
exports.initSyncers = function() {
|
||||
this.syncers = {};
|
||||
var self = this;
|
||||
$tw.modules.forEachModuleOfType("syncer",function(title,module) {
|
||||
if(module.name && module.syncer) {
|
||||
self.syncers[module.name] = new module.syncer({
|
||||
wiki: self
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/*
|
||||
Trigger a load for a tiddler if it is skinny. Returns the text, or undefined if the tiddler is missing, null if the tiddler is being lazily loaded.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user