mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-17 12:39:54 +08:00
stop listening
This commit is contained in:
parent
06747c1ada
commit
e809fcb545
@ -52,6 +52,7 @@ define(["widgets/js/manager",
|
||||
_handle_comm_closed: function (msg) {
|
||||
// Handle when a widget is closed.
|
||||
this.trigger('comm:close');
|
||||
this.stopListening();
|
||||
this.trigger('destroy', this);
|
||||
delete this.comm.model; // Delete ref so GC will collect widget model.
|
||||
delete this.comm;
|
||||
|
Loading…
Reference in New Issue
Block a user