From 7d013dbc04f542188da04c7de6511846805bd951 Mon Sep 17 00:00:00 2001
From: Mariani Giacomo <mariang1@t31300-lr138.org.aalto.fi>
Date: Mon, 30 Mar 2020 16:36:01 +0300
Subject: [PATCH] fixed typo for event exercise

---
 content.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/content.js b/content.js
index df1c082..5fe5a20 100644
--- a/content.js
+++ b/content.js
@@ -612,17 +612,17 @@ let Content = {
     instructions: `Now we want to upgrade our keyboard. We would like to show the
     note names on the buttons only when the mouse pointer enters the button, and remove them
     when the mouse pointer leaves the button. For this purpose we can use the events "mouseenter"
-    and "mosueleave". Complete the code below so the on "mouseenter" event the
+    and "mouseleave". Complete the code below so the on "mouseenter" event the
     <code>innerText</code> is set, and on "mouseleave" the <code>innerText</code> is removed.
     After running the code you can hover over the buttons to see what happens.  `,
     initialJs: `let buttonsIds = ['C', 'C#', 'D', 'D#', 'E'];
 for(let i = 0; i < buttonsIds.length; i++) {
     let noteButton = document.getElementById(buttonsIds[i]);
     let innerText = buttonsIds[i];
-    noteButton.addEventListener('add the right event type here', e => {
+    noteButton.addEventListener('add the right event type here', function(e) {
         /* Add the innerText to the note button */
     });
-    noteButton.addEventListener('add the right event type here', e => {
+    noteButton.addEventListener('add the right event type here', function(e) {
         /* Remove the innerText to the note button */
     });
 }
-- 
GitLab