From 7df7e227c59940cf5eaa7030979caa9efc738225 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Tue, 28 Apr 2015 18:25:06 -0400 Subject: [PATCH] Make sure the correct jax is passed to the postInputHooks. --- unpacked/MathJax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js index 47e27390f..5f84bd187 100644 --- a/unpacked/MathJax.js +++ b/unpacked/MathJax.js @@ -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) {