Skip to content

Commit

Permalink
cheatsheet.js: use event instead of e (twbs#32335)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Dec 4, 2020
1 parent 85acd96 commit 321ee7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/content/docs/5.0/examples/cheatsheet/cheatsheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
})

Expand Down

0 comments on commit 321ee7a

Please sign in to comment.