Save output after attaching jax, otherwise it is not cloned properly if it is being updated

This commit is contained in:
Davide P. Cervone 2011-09-22 19:48:12 -04:00
parent d6dfceca94
commit eee1e9014f
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -1501,8 +1501,8 @@ MathJax.Hub = {
if (jax.called) continue; // go back and call Process() again
this.RestartAfter(jax); // wait for the callback
}
this.saveScript(jax,state,script,STATE); // add script to state
jax.Attach(script,this.inputJax[type].id); // register the jax on the script
this.saveScript(jax,state,script,STATE); // add script to state
} else if (script.MathJax.state === STATE.OUTPUT) {
this.saveScript(script.MathJax.elementJax,state,script,STATE); // add script to state
}