diff options
| author | XhmikosR <[email protected]> | 2020-12-04 16:00:21 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-12-04 16:00:21 +0200 |
| commit | 321ee7a1ad8584c1bfe604b5d16950d6051d52a4 (patch) | |
| tree | c5a0f619153e540bbe8213d9085e14489eb72c1e | |
| parent | 85acd96e31c450e1f20fbb079b3fabe4754fa803 (diff) | |
| download | bootstrap-321ee7a1ad8584c1bfe604b5d16950d6051d52a4.tar.xz bootstrap-321ee7a1ad8584c1bfe604b5d16950d6051d52a4.zip | |
cheatsheet.js: use `event` instead of `e` (#32335)
| -rw-r--r-- | site/content/docs/5.0/examples/cheatsheet/cheatsheet.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/site/content/docs/5.0/examples/cheatsheet/cheatsheet.js b/site/content/docs/5.0/examples/cheatsheet/cheatsheet.js index bafea8e92..541cf9350 100644 --- a/site/content/docs/5.0/examples/cheatsheet/cheatsheet.js +++ b/site/content/docs/5.0/examples/cheatsheet/cheatsheet.js @@ -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() }) }) |
