From: XhmikosR Date: Fri, 4 Dec 2020 14:00:21 +0000 (+0200) Subject: cheatsheet.js: use `event` instead of `e` (#32335) X-Git-Tag: v5.0.0-beta1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=321ee7a1ad8584c1bfe604b5d16950d6051d52a4;p=thirdparty%2Fbootstrap.git cheatsheet.js: use `event` instead of `e` (#32335) --- diff --git a/site/content/docs/5.0/examples/cheatsheet/cheatsheet.js b/site/content/docs/5.0/examples/cheatsheet/cheatsheet.js index bafea8e924..541cf9350a 100644 --- a/site/content/docs/5.0/examples/cheatsheet/cheatsheet.js +++ b/site/content/docs/5.0/examples/cheatsheet/cheatsheet.js @@ -28,8 +28,8 @@ // Disable empty links document.querySelectorAll('[href="#"]') .forEach(function (link) { - link.addEventListener('click', function (e) { - e.preventDefault() + link.addEventListener('click', function (event) { + event.preventDefault() }) })