##// END OF EJS Templates
stop listening
Sylvain Corlay -
Show More
@@ -52,6 +52,7 b' define(["widgets/js/manager",'
52 _handle_comm_closed: function (msg) {
52 _handle_comm_closed: function (msg) {
53 // Handle when a widget is closed.
53 // Handle when a widget is closed.
54 this.trigger('comm:close');
54 this.trigger('comm:close');
55 this.stopListening();
55 this.trigger('destroy', this);
56 this.trigger('destroy', this);
56 delete this.comm.model; // Delete ref so GC will collect widget model.
57 delete this.comm.model; // Delete ref so GC will collect widget model.
57 delete this.comm;
58 delete this.comm;
General Comments 0
You need to be logged in to leave comments. Login now