From d4ffe705ebebba49ebaf0652b4430bb459e83eb4 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Mon, 11 Jan 2016 18:37:20 -0500 Subject: [PATCH] Call clearInterval for the currentTimer if one exists Prevents a double-click from causing the logo to sweep forever after a load completes. --- app/assets/javascripts/logo.js.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/logo.js.coffee b/app/assets/javascripts/logo.js.coffee index e864a674cdd..a5879c8b793 100644 --- a/app/assets/javascripts/logo.js.coffee +++ b/app/assets/javascripts/logo.js.coffee @@ -21,6 +21,7 @@ start = -> clearHighlights() pieceIndex = 0 pieces.reverse() unless pieces[0] == firstPiece + clearInterval(currentTimer) if currentTimer currentTimer = setInterval(work, delay) stop = ->