Hi Jeremy,
 
>
> It's a bad idea for a widget to add event listeners to the DOM (other than 
> to the dom elements that it creates). You'd be better off attaching your 
> event listener inside a startup module within the same plugin. You can use 
> closures or globals to communicate with your widget instances.
>

Good idea
 

> There is no destructor for widgets at the moment. I think we may well need 
> destructors to properly handle some memory leaks, but they've not been 
> required so far. I should explain that I'm not a huge fan of destructors in 
> JS because they have to be called manually.
>

Me neither! But for example when I created some tiddlers in $:/temp for the 
time my widget is running (I use this as a pipe to store information to 
communicate with the GUI). I want to remove them after closing, but I 
can't. *A suggestion:* can't we do it like /tmp in linux: delete $:/temp/ 
during bootup! that would be sweet! Then no cleanup is necessary.

Felix
Regards

-- 
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.

Reply via email to