Fix calling of prettyPrintOne before it has been loaded.

This commit is contained in:
ccd0 2015-05-25 19:25:31 -07:00
parent a1708d74ea
commit c5ca6eb00e

View File

@ -60,6 +60,7 @@ Fourchan =
code: -> code: ->
return if @isClone return if @isClone
$.ready =>
for pre, i in $$('.prettyprint', @nodes.comment) when not $.hasClass(pre, 'prettyprinted') for pre, i in $$('.prettyprint', @nodes.comment) when not $.hasClass(pre, 'prettyprinted')
$.event 'prettyprint', {ID: @fullID, i: i, html: pre.innerHTML}, window $.event 'prettyprint', {ID: @fullID, i: i, html: pre.innerHTML}, window
return return