htmx
htmx copied to clipboard
Added reinit method to public API
In reference to #425 (and subsequent PRs #943) this adds a reinit method to clean up elements and then reprocess.
cleanUpElement was extended to have a parameter that resets the initialized flag too (to allow initNode to reactivate).
Documentation updated with an Alpine sample that would reinitialise when a hx-get has changed on an element.