##// END OF EJS Templates
Set default metadata for javascript callback
Jason Grout -
Show More
@@ -351,7 +351,7 var IPython = (function (IPython) {
351 var reply = $.parseJSON(e.data);
351 var reply = $.parseJSON(e.data);
352 var content = reply.content;
352 var content = reply.content;
353 var msg_type = reply.header.msg_type;
353 var msg_type = reply.header.msg_type;
354 var metadata = reply.metadata;
354 var metadata = reply.metadata || {};
355 var callbacks = this.get_callbacks_for_msg(reply.parent_header.msg_id);
355 var callbacks = this.get_callbacks_for_msg(reply.parent_header.msg_id);
356 if (msg_type !== 'status' && callbacks === undefined) {
356 if (msg_type !== 'status' && callbacks === undefined) {
357 // Message not from one of this notebook's cells and there are no
357 // Message not from one of this notebook's cells and there are no
General Comments 0
You need to be logged in to leave comments. Login now