don't run jsMath parsing until post is inserted into the document

This commit is contained in:
ccd0 2014-05-24 15:41:53 -07:00
parent e8d8e639dd
commit 08ee499d57

View File

@ -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/