From 64fe3f161829a2b1fc92d3b2463a55bb1c36898b Mon Sep 17 00:00:00 2001 From: Grant Nestor Date: Wed, 15 Mar 2017 19:41:43 -0700 Subject: [PATCH] Trigger 'cleared' event when output area is cleared --- notebook/static/notebook/js/outputarea.js | 1 + 1 file changed, 1 insertion(+) diff --git a/notebook/static/notebook/js/outputarea.js b/notebook/static/notebook/js/outputarea.js index 873cd01f8..ea781fc95 100644 --- a/notebook/static/notebook/js/outputarea.js +++ b/notebook/static/notebook/js/outputarea.js @@ -969,6 +969,7 @@ define([ // Notify others of changes. this.element.trigger('changed'); + this.element.trigger('cleared'); this.outputs = []; this._display_id_targets = {};