Changed ES6 function syntax to ES5 in JS example (#977)

This commit is contained in:
Pete Marcano 2017-07-31 14:19:31 -04:00 committed by Jeremy Thomas
parent 18b56e84d1
commit e718525936

View File

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