別にIIFEである必要性ないじゃん

This commit is contained in:
shibafu 2019-02-09 23:38:48 +09:00
parent b4a7ec64dd
commit 7a606be3ba

View File

@ -146,9 +146,7 @@
}); });
}); });
(function () { new Chart(document.getElementById('global-count-graph').getContext('2d'), {
var context = document.getElementById('global-count-graph').getContext('2d');
var chart = new Chart(context, {
type: 'bar', type: 'bar',
data: { data: {
labels: @json(array_keys($globalEjaculationCounts)), labels: @json(array_keys($globalEjaculationCounts)),
@ -180,6 +178,5 @@
} }
} }
}); });
}());
</script> </script>
@endpush @endpush