I'm only semi php- and js-literate, but i'm wondering if this could work in theory?
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/97305243-ff16-4c5a-952d-4fb0a8357d93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
loadTiddler is giving me trouble, however. The wiki just doesn't seem to dispatch the load events, and I don't know why.
for anyone who is curious, my horrible code is here at github, but be warned it is not pretty:
https://github.com/Wheels00/tw5-php-simple-sync
/*
Lazily load a skinny tiddler if we can
*/
Syncer.prototype.handleLazyLoadEvent = function(title) {
// Don't lazy load the same tiddler twice
var info = this.tiddlerInfo[title];
// MARK's BREAKPOINT
if(!info || !info.hasBeenLazyLoaded) { // MARK'S OBSERVATION -- ALWAYS EVALUATES FALSE AND SKIPS OVER
this.createTiddlerInfo(title);
this.tiddlerInfo[title].hasBeenLazyLoaded = true;
// Queue up a sync task to load this tiddler
this.enqueueSyncTask({
type: "load",
title: title
});
}
};
It is a bug introduced in 5.1.13
I have reported it some time ago and it's already fixed, but you have to use prerelease version of TW or wait until 5.1.14
I advised Jeremy to do a patch release of 5.1.13 because it adds a lot of confusion to developers, but I didn't hear anything from him about this.
Regards
https://github.com/Jermolene/TiddlyWiki5/issues/2514
Maybe you want to add a +1 to it