mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-17 23:31:22 +00:00
Use the wiki event mechanism to dispatch lazyLoad notifications to syncers
We're trying to get to the point where wiki.js doesn't know about syncers
This commit is contained in:
@@ -628,8 +628,8 @@ exports.getTiddlerText = function(title,defaultText) {
|
||||
// Just return the text if we've got it
|
||||
return tiddler.fields.text;
|
||||
} else {
|
||||
// Ask all the syncers to load the tiddler if they can
|
||||
this.invokeSyncers("lazyLoad",title,tiddler);
|
||||
// Tell any listeners about the need to lazily load this tiddler
|
||||
this.dispatchEvent("lazyLoad",title);
|
||||
// Indicate that the text is being loaded
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user