Skip to content

Commit 00dbfc5

Browse files
authored
Merge pull request wesbos#131 from PabloCarmona/PabloCarmona-patch-1
Hide mole fixed on the challenge wesbos#30
2 parents ad48fac + a47295b commit 00dbfc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

30 - Whack A Mole/index-FINISHED.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ <h1>Whack-a-mole! <span class="score">0</span></h1>
7676
function bonk(e) {
7777
if(!e.isTrusted) return; // cheater!
7878
score++;
79-
this.classList.remove('up');
79+
this.parentNode.classList.remove('up');
8080
scoreBoard.textContent = score;
8181
}
8282

0 commit comments

Comments
 (0)