mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-02 20:29:10 +00:00
parent
8464101430
commit
ab5e5795e8
@ -271,13 +271,16 @@ Syncer.prototype.handleLazyLoadEvent = function(title) {
|
|||||||
// Don't lazy load the same tiddler twice
|
// Don't lazy load the same tiddler twice
|
||||||
var info = this.tiddlerInfo[title];
|
var info = this.tiddlerInfo[title];
|
||||||
if(!info || !info.hasBeenLazyLoaded) {
|
if(!info || !info.hasBeenLazyLoaded) {
|
||||||
this.createTiddlerInfo(title);
|
// Don't lazy load if the tiddler isn't included in the sync filter
|
||||||
this.tiddlerInfo[title].hasBeenLazyLoaded = true;
|
if(this.filterFn.call(this.wiki).indexOf(title) !== -1) {
|
||||||
// Queue up a sync task to load this tiddler
|
this.createTiddlerInfo(title);
|
||||||
this.enqueueSyncTask({
|
this.tiddlerInfo[title].hasBeenLazyLoaded = true;
|
||||||
type: "load",
|
// Queue up a sync task to load this tiddler
|
||||||
title: title
|
this.enqueueSyncTask({
|
||||||
});
|
type: "load",
|
||||||
|
title: title
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user