Skip to content

Commit b949c04

Browse files
Update to forEach
1 parent 6ed676d commit b949c04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pies.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ <h1>Pies</h1>
6363
window.addEventListener("DOMContentLoaded", function(e) {
6464
const orderButtons = document.querySelectorAll("button[data-order]");
6565

66-
[].forEach.call(orderButtons, function(button) {
66+
orderButtons.forEach(function(button) {
67+
6768
button.addEventListener("click", function(e) {
6869
const button = e.currentTarget;
6970
const container = button.parentNode;

0 commit comments

Comments
 (0)