Hi James That's pretty baffling. I can't see a code path that would result in the behaviour that you're seeing. Can you share more of the source?
Best wishes Jeremy On Sun, Oct 5, 2014 at 12:55 PM, James Anderson <[email protected]> wrote: > Hi Jeremy > > I am using the latest version grabbed from github last night. And yes you > have understood correctly. They only get called at startup when I have > opened the shadow tiddler and edited it (just adding a new space somewhere) > > Thanks, > James > > On Sunday, 5 October 2014 12:23:59 UTC+1, Jeremy Ruston wrote: >> >> Hi James >> >> > I have narrowed this down to the mathjax plugin >> >> What version of TW are you using? >> >> > I added an alert just after exports startup to confirm this. It >> doesn't get called until I add a space to the original in browser, save it >> and open it again. After which the assert is called. This happens in both >> the html and hta versions of my TW. >> >> Just to check I've understood: the issue is that your startup modules >> don't get called if they are packed into a plugin as shadow tiddlers, but >> work OK if you convert them into ordinary system tiddlers. That's pretty >> strange behaviour. I think the MathJax plugin may indeed be the source of >> the problem; it registers a startup module but rather than doing its work >> in the startup function, it executes immediately. That defeats the startup >> ordering mechanism in TW. >> >> Best wishes >> >> Jeremy >> >> >> >> >> >> >> >> On Sun, Oct 5, 2014 at 11:38 AM, James Anderson <[email protected]> >> wrote: >> >>> I have narrowed this down to the mathjax plugin. If I exclude it from >>> the project the other two plugins work. If i make them exports.before = >>> ["startup"]; Then they both load normally. the strange thing seems to >>> be that the mathjax plugin works without any sign of problems. >>> >>> >>> On Sunday, 5 October 2014 07:34:01 UTC+9, James Anderson wrote: >>>> >>>> I have a plugin for external links in hta that does not work until I >>>> "overwrite" the original shadow tiddler containing the startup js code with >>>> itself. >>>> >>>> //"exports.startup = function()" { >>>> >>>> I added an alert just after exports startup to confirm this. It doesn't >>>> get called until I add a space to the original in browser, save it and open >>>> it again. After which the assert is called. This happens in both the html >>>> and hta versions of my TW. >>>> >>>> This seems to be true of other plugins i have made too, any ideas what >>>> I could be doing wrong? Or is this an issue that should be raised? >>>> >>>> the source for plugins i tested are here. >>>> https://github.com/welford/htalink >>>> https://github.com/welford/twmousetrap >>>> >>> -- >>> 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 http://groups.google.com/group/tiddlywikidev. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Jeremy Ruston >> mailto:[email protected] >> > -- Jeremy Ruston mailto:[email protected] -- 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 http://groups.google.com/group/tiddlywikidev. For more options, visit https://groups.google.com/d/optout.
