Merge pull request #327 from mayowa/dev

fix typo in htmx.off example

thanks!
This commit is contained in:
1cg 2021-01-17 18:37:28 -07:00 committed by GitHub
commit a7d8f444ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -256,7 +256,7 @@ or
htmx.off("click", myEventListener); htmx.off("click", myEventListener);
// remove this click listener from the given div // remove this click listener from the given div
var allParagraphsInMyDiv = htmx.find(htmx.find("#my-div"), "click", myEventListener) var allParagraphsInMyDiv = htmx.off(htmx.find("#my-div"), "click", myEventListener)
``` ```
### <a name="on"></a> Method - [`htmx.on()`](#on) ### <a name="on"></a> Method - [`htmx.on()`](#on)