diff --git a/IPython/html/static/notebook/js/widgets/string.js b/IPython/html/static/notebook/js/widgets/string.js index 7632f57..2a8198f 100644 --- a/IPython/html/static/notebook/js/widgets/string.js +++ b/IPython/html/static/notebook/js/widgets/string.js @@ -47,11 +47,9 @@ define(["notebook/js/widget"], function(widget_manager){ // Handles: Backend -> Frontend Sync // Frontent -> Frontend Sync update : function(){ - var that=this; this.$el.html(this.model.get('value')); - var math_el = that.$el.get(0); - MathJax.Hub.Queue(["Typeset",MathJax.Hub,math_el]); - + MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$el.get(0)]); + return IPython.WidgetView.prototype.update.call(this); },