Make sure the correct jax is passed to the postInputHooks.

This commit is contained in:
Davide P. Cervone 2015-04-28 18:25:06 -04:00
parent e533634f37
commit 7df7e227c5

View File

@ -2178,7 +2178,7 @@ MathJax.Hub = {
if (jax.called) continue; // go back and call Process() again
this.RestartAfter(jax); // wait for the callback
}
jax.Attach(script,input.id); // register the jax on the script
jax = jax.Attach(script,input.id); // register the jax on the script
this.saveScript(jax,state,script,STATE); // add script to state
this.postInputHooks.Execute(jax,input.id,script); // run global jax filters
} else if (script.MathJax.state === STATE.OUTPUT) {