0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-07 04:54:24 +01:00

cheatsheet.js: use event instead of e (#32335)

This commit is contained in:
XhmikosR 2020-12-04 16:00:21 +02:00 committed by GitHub
parent 85acd96e31
commit 321ee7a1ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,8 +28,8 @@
// Disable empty links // Disable empty links
document.querySelectorAll('[href="#"]') document.querySelectorAll('[href="#"]')
.forEach(function (link) { .forEach(function (link) {
link.addEventListener('click', function (e) { link.addEventListener('click', function (event) {
e.preventDefault() event.preventDefault()
}) })
}) })