Commit d4ffe705 authored by Robert Speicher's avatar Robert Speicher
Browse files

Call clearInterval for the currentTimer if one exists

Prevents a double-click from causing the logo to sweep forever after a
load completes.
parent f2fab27a
......@@ -21,6 +21,7 @@ start = ->
pieceIndex = 0
pieces.reverse() unless pieces[0] == firstPiece
clearInterval(currentTimer) if currentTimer
currentTimer = setInterval(work, delay)
stop = ->
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment