 
   bind: =>
     MathJax.Hub.Queue ["Typeset", MathJax.Hub]
+
     window.update_schematics()
 
     problem_prefix = @element_id.replace(/problem_/,'')

  refreshMath: (event, element) =>
    element = event.target unless element
    elid = element.id.replace(/^input_/,'')

    target = "display_" + elid

    # MathJax preprocessor is loaded by 'setupInputTypes'

      eqn = $(element).val()
      if mathjax_preprocessor
        eqn = mathjax_preprocessor(eqn)
      MathJax.Hub.Queue(['Text', jax, eqn], [@updateMathML, jax, element])

    return # Explicit return for CoffeeScript
    
  updateMathML: (jax, element) =>
    try
      $("##{element.id}_dynamath").val(jax.root.toMathML '')
