MARIO YOU ARE MY HERO! Can I humbly ask, how did you find this? Just by looking at it or via some debugging tool or something?
Thank you!!!! :-) On Jan 5, 12:44 am, PMario <pmari...@gmail.com> wrote: > The whole thing seems to be a bit fragile, because if tiddler MindSet > and Reward are not there, it may also fail. But anyway ... > > Short info, why it fails: > > if (story.getTiddler(config.act)) { > > story.getTiddler() expects a valid tiddler. config.act is undefined, > so the system throws an error message. > we can modify the if () statement, to check the existence of > config.act. If it is falsy, don't touch story.getTiddler. > > eg: > if (config.act && story.getTiddler(config.act)) { > do stuff > > } > > It checks, if config.act contains a value _different to_ "undefined" > "null" "false" > since config.act is undefined, it stopps executing story.getTiddler() > it skips the "do stuff" and goes on with the programm > > ==== > If the programm looks like this, it does something. But as i don't > know, what it should do, I'm not sure, if this fixes it. > This fix (if it is one) is just fighting the symptoms. It may not fix > the init problem. > > -m -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to tiddlywiki@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.