mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
Changed ES6 function syntax to ES5 in JS example (#977)
This commit is contained in:
parent
18b56e84d1
commit
e718525936
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user