]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
updated notification javascript guidelines
authorOvidijusParsiunas <oparsiunas@googlemail.com>
Tue, 29 Sep 2020 18:48:59 +0000 (18:48 +0000)
committerJeremy Thomas <bbxdesign@gmail.com>
Tue, 29 Sep 2020 20:03:48 +0000 (21:03 +0100)
docs/documentation/elements/notification.html

index 236c14c0d575c13b8d23743824becd4a1793bd2c..2a78e7c95ee88be83aafffcd1d91b1af2023315c 100644 (file)
@@ -55,7 +55,7 @@ meta:
 {% capture notification_js_code %}
 document.addEventListener('DOMContentLoaded', () => {
   (document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
-    $notification = $delete.parentNode;
+    var $notification = $delete.parentNode;
 
     $delete.addEventListener('click', () => {
       $notification.parentNode.removeChild($notification);