moving typeset to DOMWidgetView

Nicholas Bollweg (Nick) 12 years ago
parent 57f05c4a2b
commit b17a40d950

@ -388,18 +388,6 @@ define(["widgets/js/manager",
} else {
this.on('displayed', callback, context);
}
},
typeset: function($el, text){
// after (optionally) updating a selection's text, check if
// MathJax is available and typeset it
if(arguments.length > 1){
$el.text(text);
}
if(!window.MathJax){
return;
}
return MathJax.Hub.Queue(["Typeset", MathJax.Hub, $el.get(0)]);
}
});
@ -587,6 +575,18 @@ define(["widgets/js/manager",
}
return elements;
},
typeset: function($el, text){
// after (optionally) updating a selection's text, check if
// MathJax is available and typeset it
if(arguments.length > 1){
$el.text(text);
}
if(!window.MathJax){
return;
}
return MathJax.Hub.Queue(["Typeset", MathJax.Hub, $el.get(0)]);
},
});

Loading…
Cancel
Save