From 90307d3df30539a773b626b2af1ae4a05571ce23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20=C4=90uza?= Date: Sun, 22 Mar 2020 18:12:37 +0100 Subject: [PATCH] Fix usage of event container for jQuery --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0749b23..f9dd691 100644 --- a/README.md +++ b/README.md @@ -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); }); ```