Fix calling of prettyPrintOne before it has been loaded.
This commit is contained in:
parent
a1708d74ea
commit
c5ca6eb00e
@ -60,9 +60,10 @@ Fourchan =
|
|||||||
|
|
||||||
code: ->
|
code: ->
|
||||||
return if @isClone
|
return if @isClone
|
||||||
for pre, i in $$('.prettyprint', @nodes.comment) when not $.hasClass(pre, 'prettyprinted')
|
$.ready =>
|
||||||
$.event 'prettyprint', {ID: @fullID, i: i, html: pre.innerHTML}, window
|
for pre, i in $$('.prettyprint', @nodes.comment) when not $.hasClass(pre, 'prettyprinted')
|
||||||
return
|
$.event 'prettyprint', {ID: @fullID, i: i, html: pre.innerHTML}, window
|
||||||
|
return
|
||||||
|
|
||||||
math: ->
|
math: ->
|
||||||
return if (@isClone and doc.contains @origin.nodes.root) or !$ '.math', @nodes.comment
|
return if (@isClone and doc.contains @origin.nodes.root) or !$ '.math', @nodes.comment
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user