Show More
@@ -388,18 +388,6 b' define(["widgets/js/manager",' | |||||
388 | } else { |
|
388 | } else { | |
389 | this.on('displayed', callback, context); |
|
389 | this.on('displayed', callback, context); | |
390 | } |
|
390 | } | |
391 | }, |
|
|||
392 |
|
||||
393 | typeset: function($el, text){ |
|
|||
394 | // after (optionally) updating a selection's text, check if |
|
|||
395 | // MathJax is available and typeset it |
|
|||
396 | if(arguments.length > 1){ |
|
|||
397 | $el.text(text); |
|
|||
398 | } |
|
|||
399 | if(!window.MathJax){ |
|
|||
400 | return; |
|
|||
401 | } |
|
|||
402 | return MathJax.Hub.Queue(["Typeset", MathJax.Hub, $el.get(0)]); |
|
|||
403 | } |
|
391 | } | |
404 | }); |
|
392 | }); | |
405 |
|
393 | |||
@@ -587,6 +575,18 b' define(["widgets/js/manager",' | |||||
587 | } |
|
575 | } | |
588 | return elements; |
|
576 | return elements; | |
589 | }, |
|
577 | }, | |
|
578 | ||||
|
579 | typeset: function($el, text){ | |||
|
580 | // after (optionally) updating a selection's text, check if | |||
|
581 | // MathJax is available and typeset it | |||
|
582 | if(arguments.length > 1){ | |||
|
583 | $el.text(text); | |||
|
584 | } | |||
|
585 | if(!window.MathJax){ | |||
|
586 | return; | |||
|
587 | } | |||
|
588 | return MathJax.Hub.Queue(["Typeset", MathJax.Hub, $el.get(0)]); | |||
|
589 | }, | |||
590 | }); |
|
590 | }); | |
591 |
|
591 | |||
592 |
|
592 |
General Comments 0
You need to be logged in to leave comments.
Login now