From 3a9c6503ee82eaf8f5ddb9b18b66fc538a48dee1 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Mon, 23 Feb 2015 17:46:17 +0000 Subject: [PATCH] null check mathjax --- services/web/public/coffee/ide/chat/directives/mathjax.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/public/coffee/ide/chat/directives/mathjax.coffee b/services/web/public/coffee/ide/chat/directives/mathjax.coffee index 431244a30c..08e167ee66 100644 --- a/services/web/public/coffee/ide/chat/directives/mathjax.coffee +++ b/services/web/public/coffee/ide/chat/directives/mathjax.coffee @@ -15,12 +15,12 @@ define [ processEscapes: true skipStartupTypeset: true - MathJax.Hub.Config(mathjaxConfig); + MathJax?.Hub?.Config(mathjaxConfig); App.directive "mathjax", () -> return { link: (scope, element, attrs) -> setTimeout () -> - MathJax.Hub.Queue(["Typeset", MathJax.Hub, element.get(0)]) + MathJax?.Hub?.Queue(["Typeset", MathJax?.Hub, element.get(0)]) , 0 } \ No newline at end of file