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/ec6f98f4-d1c6-4c79-abcf-08013b011d32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to