Show More
@@ -52,6 +52,8 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(); | |||
|
56 | this.trigger('destroy', this); | |||
55 | 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. | |
56 | delete this.comm; |
|
58 | delete this.comm; | |
57 | delete this.model_id; // Delete id from model so widget manager cleans up. |
|
59 | delete this.model_id; // Delete id from model so widget manager cleans up. |
General Comments 0
You need to be logged in to leave comments.
Login now