Hi Felix > does anyone know if there is a designated place for TW plugins to store stuff in the dom that needs to persist even if a widget is removed?
Widgets are highly ephemeral in TiddlyWiki. They can be destroyed or created as required by the refresh mechanism. If you want to use the DOM to persist information between instances of a widget then you'll need to create the DOM entries separately from the main page container wrapper element. If you can, though, I'd recommend using a global variable created in $tw. > I would simply create a global object with my plugin-name as namespace an attach it to the window object. Widgets should operate properly under Node.js, too, so you should avoid the window object unless you're in browser-specific code. Best wishes Jeremy. On Sun, Nov 2, 2014 at 12:07 AM, Felix Küppers <[email protected]> wrote: > Cool, then I will do it this way too :) > > -- > 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] -- 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.
