]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Changed ES6 function syntax to ES5 in JS example (#977)
authorPete Marcano <pbmarcano91@gmail.com>
Mon, 31 Jul 2017 18:19:31 +0000 (14:19 -0400)
committerJeremy Thomas <bbxdesign@gmail.com>
Mon, 31 Jul 2017 18:19:31 +0000 (19:19 +0100)
docs/documentation/components/navbar.html

index 9fc972c79c525a974501835b7e69ed90f2ceef30..78541fabd4b054aa940c5fd6e76e4dc8a1ee2eb0 100644 (file)
@@ -417,7 +417,7 @@ document.addEventListener('DOMContentLoaded', function () {
 
     // Add a click event on each of them
     $navbarBurgers.forEach(function ($el) {
-      $el.addEventListener('click', () => {
+      $el.addEventListener('click', function () {
 
         // Get the target from the "data-target" attribute
         var target = $el.dataset.target;