Fix cooldown regression from c399eff09ebc1faaf46a177f8824de0fd538ebfa.

This commit is contained in:
ccd0 2015-08-16 18:07:59 -07:00
parent 0d98eaef7f
commit 6642e6e1cf

View File

@ -28,12 +28,13 @@ QR.cooldown =
for type, delay of QR.cooldown.delays when type not in ['thread', 'thread_global']
QR.cooldown.maxDelay = Math.max QR.cooldown.maxDelay, delay
QR.cooldown.isSetup = true
QR.cooldown.start()
start: ->
{data} = QR.cooldown
return unless (
QR.cooldown.delays and
QR.cooldown.isSetup and
!QR.cooldown.isCounting and
Object.keys(data[g.BOARD.ID] or {}).length + Object.keys(data.global or {}).length > 0
)