code: function TypesetDone(result) {
    if (timer) {clearTimeout(timer); timer = null}
    html.removeAttribute("xmlns:"+data.xmlns);
  }
docs: When the expression is typeset, clear the timeout timer, if any, and update the MathJax state,