##// END OF EJS Templates
use non-mimetype-keyed metadata in the outputarea
Paul Ivanov -
Show More
@@ -498,9 +498,19 b' var IPython = (function (IPython) {'
498 var type = OutputArea.display_order[type_i];
498 var type = OutputArea.display_order[type_i];
499 if(json[type] != undefined ){
499 if(json[type] != undefined ){
500 var md = {};
500 var md = {};
501 if (json.metadata && json.metadata[type]) {
501 if (json.metadata) {
502 md = json.metadata[type];
502 md = json.metadata;
503 };
503 if (json.metadata[type]) {
504 // XXX: need some sort of dict.update, style here if
505 // we want to support the merging of the overall
506 // metadata with the mimetype specific metadata. For
507 // now, they are mutually exclusive - if the
508 // mimetype-keyed metadata exists, *it* is used,
509 // otherwise, only the message-wide metadata is
510 // available.
511 md = json.metadata[type];
512 }
513 }
504 if(type == 'javascript'){
514 if(type == 'javascript'){
505 if (dynamic) {
515 if (dynamic) {
506 this.append_javascript(json.javascript, md, element, dynamic);
516 this.append_javascript(json.javascript, md, element, dynamic);
General Comments 0
You need to be logged in to leave comments. Login now