diff --git a/IPython/frontend/html/notebook/static/js/outputarea.js b/IPython/frontend/html/notebook/static/js/outputarea.js index 38fe503..9dc15be 100644 --- a/IPython/frontend/html/notebook/static/js/outputarea.js +++ b/IPython/frontend/html/notebook/static/js/outputarea.js @@ -331,8 +331,10 @@ var IPython = (function (IPython) { for(var type_i in OutputArea.display_order){ var type = OutputArea.display_order[type_i]; if(json[type] != undefined ){ - if(type == 'javascript' && dynamic){ - this.append_javascript(json.javascript, element, dynamic); + if(type == 'javascript'){ + if (dynamic) { + this.append_javascript(json.javascript, element, dynamic); + } } else { this['append_'+type](json[type], element); }