mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 12:46:07 +10:00
Call clearInterval for the currentTimer if one exists
Prevents a double-click from causing the logo to sweep forever after a load completes.
This commit is contained in:
@@ -21,6 +21,7 @@ start = ->
|
||||
clearHighlights()
|
||||
pieceIndex = 0
|
||||
pieces.reverse() unless pieces[0] == firstPiece
|
||||
clearInterval(currentTimer) if currentTimer
|
||||
currentTimer = setInterval(work, delay)
|
||||
|
||||
stop = ->
|
||||
|
||||
Reference in New Issue
Block a user