flatten comment in script
authorDan Allen <dan@opendevise.com>
Mon, 21 Dec 2020 00:42:01 +0000 (17:42 -0700)
committerDan Allen <dan@opendevise.com>
Mon, 21 Dec 2020 00:42:01 +0000 (17:42 -0700)
src/js/04-page-versions.js

index 6b8678b..c4c1378 100644 (file)
@@ -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 () {