From 08ee499d57f7316775c8d89db0ce0e9dcd5bf945 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 24 May 2014 15:41:53 -0700 Subject: [PATCH] don't run jsMath parsing until post is inserted into the document --- src/Miscellaneous/Fourchan.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Miscellaneous/Fourchan.coffee b/src/Miscellaneous/Fourchan.coffee index 7d36e8b93..aaf1317ff 100755 --- a/src/Miscellaneous/Fourchan.coffee +++ b/src/Miscellaneous/Fourchan.coffee @@ -42,7 +42,8 @@ Fourchan = return math: -> return if (@isClone and doc.contains @origin.nodes.root) or !$ '.math', @nodes.comment - $.event 'jsmath', @nodes.post, window + $.asap (=> doc.contains @nodes.post), => + $.event 'jsmath', @nodes.post, window parseThread: (threadID, offset, limit) -> # Fix /sci/ # Fix /g/