mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-11 12:30:51 +08:00
Merge pull request #2954 from minrk/fixdynamic
fix logic for append_javascript
This commit is contained in:
commit
dbbe6f4ee1
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user