Hi I'm debugging an issue on my local modifications, still not defined if this is related to a pull to latest git or in my plugins, but it seems there is a bug in the Reveal Widget "readState" code path with lazy loaded state tiddlers
In Reveal Widget execute function, the state is read "this.readState()", this method calls "wiki.getTextReference()" with the state's tiddler title as the textreference (so the actual tiddler text is requested), as no field or index is used, getTiddlerText is called to lazy load the tiddler (as it is the first time the tiddler contents are requested) getTiddlerText dispatch the "lazyLoad" event with the title as parameter and right after that it returns "null. This return result is bubbled up to readState where state is set to this "null" value and right after that, the switch paths use this null "state" in "compareStateText", which tries to execute a localCompare on this null "state" object (state.localeCompare(this.text,....)), and this results in a error exception Probably this is exposed as a result my modifications, but it sure looks like a bug nonetheless, unless somehow it is guaranteed that a state tiddler is loaded before accessing its state (and never lazy loaded)? -- 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 [email protected]. To post to this group, send email to [email protected]. 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/f91c6f4f-2dad-4da8-a687-99f42c342fc5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
