Runtime module for the Wikidot [[module Join]] button.
The Join module renders a .join-btn element that, when clicked,
invokes the host application's join callback (options.onJoin).
If no callback is provided, clicks are silently ignored.
DOM interactions:
Listens for click (bubble) on root, delegated to .join-btn
Calls options.onJoin() (which returns a Promise) on click
The destroy() cleanup function removes the click listener.
Runtime module for the Wikidot
[[module Join]]button.The Join module renders a
.join-btnelement that, when clicked, invokes the host application's join callback (options.onJoin). If no callback is provided, clicks are silently ignored.DOM interactions:
click(bubble) on root, delegated to.join-btnoptions.onJoin()(which returns a Promise) on clickThe
destroy()cleanup function removes the click listener.