From eb16ee0beb1f75db7cd821e4449f9c96ca7e673e Mon Sep 17 00:00:00 2001 From: Matt Lane Date: Thu, 25 Feb 2016 16:28:39 -0800 Subject: [PATCH] Update app.js --- app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 8d24a7e..5fc3683 100644 --- a/app.js +++ b/app.js @@ -53,6 +53,7 @@ var konamiCheck = function(e) { idx++; if (idx === konamiCodeKeyCodes.length) { alert("YOU ARE AN EVENT HANDLER GURUUUUUUUUU!"); + idx = 0; } } else { idx = 0; @@ -70,4 +71,4 @@ var initialize = function(){ document.querySelector("body").addEventListener("keyup", konamiCheck); }; -window.onload=initialize; \ No newline at end of file +window.onload=initialize;