diff --git a/IPython/html/static/base/js/utils.js b/IPython/html/static/base/js/utils.js index 714faba6c..6e33ca14b 100644 --- a/IPython/html/static/base/js/utils.js +++ b/IPython/html/static/base/js/utils.js @@ -773,13 +773,13 @@ define([ * element: Node, NodeList, or jQuery selection * text: option string */ - if(!window.MathJax){ - return; - } var $el = element.jquery ? element : $(element); if(arguments.length > 1){ $el.text(text); } + if(!window.MathJax){ + return; + } return $el.map(function(){ // MathJax takes a DOM node: $.map makes `this` the context return MathJax.Hub.Queue(["Typeset", MathJax.Hub, this]);