Fix bug from 1b6095ec2663001c858c7ddb911bf10fcb405d06 causing Reply Pruning not to run on page load.

This commit is contained in:
ccd0 2016-04-03 00:33:44 -07:00
parent f6010ca298
commit f582097707

View File

@ -47,6 +47,7 @@ ReplyPruning =
$.on ReplyPruning.inputs.enabled, 'change', ReplyPruning.update
$.on ReplyPruning.inputs.replies, 'change', ReplyPruning.update
$.on d, 'ThreadUpdate', ReplyPruning.update
ReplyPruning.update()
update: (e) ->
if e and e.type is 'ThreadUpdate' and not e.detail[404]