mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-24 14:04:09 +03:00
cheatsheet.js: use event instead of e (#32335)
This commit is contained in:
@@ -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()
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user