Mark the root math element with the source ID so you can look up the jax from within the math tree

This commit is contained in:
Davide P. Cervone 2011-05-01 07:42:46 -04:00
parent 92c0a9f9a5
commit bea67bcb8f
2 changed files with 2 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -1915,6 +1915,7 @@ MathJax.Hub.Startup = {
}
jax.originalText = (script.text == "" ? script.innerHTML : script.text);
jax.inputJax = inputJax;
if (jax.root) {jax.root.inputID = jax.inputID}
},
Detach: function () {
var script = this.SourceElement(); if (!script) return;