Don't need to reprettyprint inside of threads.

This commit is contained in:
Mayhem 2013-11-03 16:58:50 +01:00
parent bddb032dac
commit aeea95564c

View File

@ -35,7 +35,7 @@ Fourchan =
return if @isClone
apply = (e) -> pre.innerHTML = e.detail
$.on window, 'prettyprint:cb', apply
for pre in $$ '.prettyprint', @nodes.comment
for pre in $$ '.prettyprint:not(.prettyprinted)', @nodes.comment
$.event 'prettyprint', pre.innerHTML, window
$.off window, 'prettyprint:cb', apply
return