mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-14 01:21:00 +00:00
cheatsheet.js: use event instead of e (#32335)
This commit is contained in:
parent
85acd96e31
commit
321ee7a1ad
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue