Just realized that the title is ambiguous. My current plugin structure is ignoring tiddlyiki logic. I'm looking for a solution that is more consistent with tiddlywiki.
On Thursday, February 7, 2019 at 10:15:11 PM UTC, admls wrote: > > Hi Folks, > > I'm trying to add event listeners to tiddlers by tag. What I've done is > defined a global module with the event handlers and then made a javascript > macro that climbs the DOM tree to get the tiddler frame and adds the event > listener to that. Then there's some event delegation to handle everything > within. The appropriate macro is then simply transcluded into all the > tiddlers with the appropriate tag. This *works* just fine because the > macro get run whenever the tiddler gets refreshed and the event listener > gets a attached to the refreshed element. But it strikes me as antithetical > to the logic of Tiddlywiki. So I guess I am wondering what's the most > tiddlywiki way to add event listeners to tiddler-frames by tag. Is there an > established way to do this? > > Regards, > Adam > -- 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/fd3a299c-4365-4112-9349-453bdab419d1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
