##// END OF EJS Templates
Merge pull request #7363 from dongweiming/no_mathjax...
Jonathan Frederic -
r19792:22a44b8f merge
parent child Browse files
Show More
@@ -773,13 +773,13 b' define(['
773 * element: Node, NodeList, or jQuery selection
773 * element: Node, NodeList, or jQuery selection
774 * text: option string
774 * text: option string
775 */
775 */
776 if(!window.MathJax){
777 return;
778 }
779 var $el = element.jquery ? element : $(element);
776 var $el = element.jquery ? element : $(element);
780 if(arguments.length > 1){
777 if(arguments.length > 1){
781 $el.text(text);
778 $el.text(text);
782 }
779 }
780 if(!window.MathJax){
781 return;
782 }
783 return $el.map(function(){
783 return $el.map(function(){
784 // MathJax takes a DOM node: $.map makes `this` the context
784 // MathJax takes a DOM node: $.map makes `this` the context
785 return MathJax.Hub.Queue(["Typeset", MathJax.Hub, this]);
785 return MathJax.Hub.Queue(["Typeset", MathJax.Hub, this]);
General Comments 0
You need to be logged in to leave comments. Login now