##// END OF EJS Templates
fix logic for append_javascript...
MinRK -
Show More
@@ -331,8 +331,10 b' var IPython = (function (IPython) {'
331 for(var type_i in OutputArea.display_order){
331 for(var type_i in OutputArea.display_order){
332 var type = OutputArea.display_order[type_i];
332 var type = OutputArea.display_order[type_i];
333 if(json[type] != undefined ){
333 if(json[type] != undefined ){
334 if(type == 'javascript' && dynamic){
334 if(type == 'javascript'){
335 this.append_javascript(json.javascript, element, dynamic);
335 if (dynamic) {
336 this.append_javascript(json.javascript, element, dynamic);
337 }
336 } else {
338 } else {
337 this['append_'+type](json[type], element);
339 this['append_'+type](json[type], element);
338 }
340 }
General Comments 0
You need to be logged in to leave comments. Login now