Skip to content

Commit

Permalink
flatten comment in script
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Dec 21, 2020
1 parent e5b2668 commit 34395c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/js/04-page-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

toggle.addEventListener('click', function (e) {
selector.classList.toggle('is-active')
// don't let this event get smothered
e.stopPropagation()
e.stopPropagation() // trap event
})

document.documentElement.addEventListener('click', function () {
Expand Down

0 comments on commit 34395c3

Please sign in to comment.