]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
cheatsheet.js: use `event` instead of `e` (#32335)
authorXhmikosR <xhmikosr@gmail.com>
Fri, 4 Dec 2020 14:00:21 +0000 (16:00 +0200)
committerGitHub <noreply@github.com>
Fri, 4 Dec 2020 14:00:21 +0000 (16:00 +0200)
site/content/docs/5.0/examples/cheatsheet/cheatsheet.js

index bafea8e9245fa0e77a7252ad12ff44784b949cd5..541cf9350a1ec9aa0f2417f82143b7930c71e84d 100644 (file)
@@ -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()
       })
     })