Skip to content

Commit

Permalink
Fix usage of event container for jQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolalsvk committed Mar 22, 2020
1 parent e0bc938 commit 90307d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,11 @@ document.addEventListener('render_async_error', function(event) {
});
// with jQuery
$(document).on('render_async_load', function(event, container) {
console.log('Async partial loaded in this container:', container);
$(document).on('render_async_load', function(event) {
console.log('Async partial loaded in this container:', event.container);
});
$(document).on('render_async_error', function(event, container) {
console.log('Async partial could not load in this container:', container);
$(document).on('render_async_error', function(event) {
console.log('Async partial could not load in this container:', event.container);
});
```

Expand Down

0 comments on commit 90307d3

Please sign in to comment.