mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-19 11:51:23 +02:00
cheatsheet.js: use event
instead of e
(#32335)
This commit is contained in:
@@ -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()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user