mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-28 05:21:18 +00:00
This commit is contained in:
parent
caf838f2de
commit
52267f5c74
@ -937,7 +937,7 @@ If you want to register for a given htmx event you can use
|
||||
|
||||
```js
|
||||
document.body.addEventListener('htmx:load', function(evt) {
|
||||
myJavascriptLib.init(evt.details.elt);
|
||||
myJavascriptLib.init(evt.detail.elt);
|
||||
});
|
||||
```
|
||||
|
||||
@ -945,7 +945,7 @@ or, if you would prefer, you can use the following htmx helper:
|
||||
|
||||
```javascript
|
||||
htmx.on("htmx:load", function(evt) {
|
||||
myJavascriptLib.init(evt.details.elt);
|
||||
myJavascriptLib.init(evt.detail.elt);
|
||||
});
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user