Commit 638e20c8 authored by RawKStar77's avatar RawKStar77

Give $timeout third parameter

Kill if !MathJax?
parent a52107b2
......@@ -297,11 +297,10 @@ markdown = ['$filter', '$sanitize', '$sce', '$timeout', ($filter, $sanitize, $sc
rendered = renderMath markdown
scope.rendered = $sce.trustAsHtml rendered
catch
if !MathJax?
loadMathJax()
loadMathJax()
rendered = markdown
scope.rendered = $sce.trustAsHtml rendered
$timeout -> MathJax?.Hub.Queue(["Typeset", MathJax.Hub, output])
$timeout (-> MathJax?.Hub.Queue ['Typeset', MathJax.Hub, output]), 0, false
# React to the changes to the input
inputEl.bind 'blur change keyup', ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment