Remove outdated temporary workarounds.
This commit is contained in:
parent
09daa29220
commit
451661077d
@ -234,7 +234,6 @@ QR =
|
|||||||
setTimers = (e) => QR.cooldown.types = e.detail
|
setTimers = (e) => QR.cooldown.types = e.detail
|
||||||
$.on window, 'cooldown:timers', setTimers
|
$.on window, 'cooldown:timers', setTimers
|
||||||
$.globalEval 'window.dispatchEvent(new CustomEvent("cooldown:timers", {detail: cooldowns}))'
|
$.globalEval 'window.dispatchEvent(new CustomEvent("cooldown:timers", {detail: cooldowns}))'
|
||||||
QR.cooldown.types or= {} # XXX tmp workaround until all pages and the catalogs get the cooldowns var.
|
|
||||||
$.off window, 'cooldown:timers', setTimers
|
$.off window, 'cooldown:timers', setTimers
|
||||||
for type of QR.cooldown.types
|
for type of QR.cooldown.types
|
||||||
QR.cooldown.types[type] = +QR.cooldown.types[type]
|
QR.cooldown.types[type] = +QR.cooldown.types[type]
|
||||||
@ -304,11 +303,6 @@ QR =
|
|||||||
QR.cooldown.unset start
|
QR.cooldown.unset start
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if 'timeout' of cooldown
|
|
||||||
# XXX tmp conversion from previous cooldowns
|
|
||||||
QR.cooldown.unset start
|
|
||||||
continue
|
|
||||||
|
|
||||||
if isReply is cooldown.isReply
|
if isReply is cooldown.isReply
|
||||||
# Only cooldowns relevant to this post can set the seconds variable:
|
# Only cooldowns relevant to this post can set the seconds variable:
|
||||||
# reply cooldown with a reply, thread cooldown with a thread
|
# reply cooldown with a reply, thread cooldown with a thread
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user