Merge branch 'bstable'

This commit is contained in:
ccd0 2015-08-16 18:13:10 -07:00
commit 39c404f1e5
2 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,9 @@ Sometimes the changelog has notes (not comprehensive) acknowledging people's wor
### v1.11.8
**v1.11.8.9** *(2015-08-16)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.8.9/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.8.9/builds/4chan-X-noupdate.crx "Chromium version")]
- Fix regression from v1.11.8.0 that caused the cooldown to stop working in certain circumstances.
**v1.11.8.8** *(2015-08-15)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.8.8/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.8.8/builds/4chan-X-noupdate.crx "Chromium version")]
- Add link to new anonymous bug reporting form: https://gitreports.com/issue/ccd0/4chan-x

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
)