##// END OF EJS Templates
Try removing the callbacks
jon -
Show More
@@ -632,8 +632,8 var IPython = (function (IPython) {
632 var type = 'image/png';
632 var type = 'image/png';
633 var toinsert = this.create_output_subarea(md, "output_png", type);
633 var toinsert = this.create_output_subarea(md, "output_png", type);
634 var img = $("<img/>").attr('src','data:image/png;base64,'+png);
634 var img = $("<img/>").attr('src','data:image/png;base64,'+png);
635 if (handle_inserted !== undefined) {
635 if (handle_inserted !== undefined) {
636 img.load(handle_inserted);
636 img.on('load', handle_inserted);
637 }
637 }
638 set_width_height(img, md, 'image/png');
638 set_width_height(img, md, 'image/png');
639 this._dblclick_to_reset_size(img);
639 this._dblclick_to_reset_size(img);
@@ -648,7 +648,7 var IPython = (function (IPython) {
648 var toinsert = this.create_output_subarea(md, "output_jpeg", type);
648 var toinsert = this.create_output_subarea(md, "output_jpeg", type);
649 var img = $("<img/>").attr('src','data:image/jpeg;base64,'+jpeg);
649 var img = $("<img/>").attr('src','data:image/jpeg;base64,'+jpeg);
650 if (handle_inserted !== undefined) {
650 if (handle_inserted !== undefined) {
651 img.load(handle_inserted);
651 img.on('load', handle_inserted);
652 }
652 }
653 set_width_height(img, md, 'image/jpeg');
653 set_width_height(img, md, 'image/jpeg');
654 this._dblclick_to_reset_size(img);
654 this._dblclick_to_reset_size(img);
@@ -771,7 +771,9 var IPython = (function (IPython) {
771 this.clear_queued = false;
771 this.clear_queued = false;
772 }
772 }
773
773
774 // clear all, no need for logic
774 // clear all
775 // Remove onload event listeners on child img elements.
776 this.element.find('img').off('load');
775 this.element.html("");
777 this.element.html("");
776 this.outputs = [];
778 this.outputs = [];
777 this.trusted = true;
779 this.trusted = true;
General Comments 0
You need to be logged in to leave comments. Login now