fred-wang / TeXZilla

LALR Javascript LaTeX-to-MathML converter compatible with Unicode
http://fred-wang.github.io/TeXZilla/
130 stars 21 forks source link

Use MutationObserver and fix lifecycle issues/demo determinism #68

Closed bkardell closed 5 years ago

bkardell commented 5 years ago

Switch this to use a Mutation Observer - it is simpler, more inline with how most things would actually work and doesn't wind up with determinism problems in the lifecycle about when you actually define it.

(I verified the demo :))