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.comm.model.trigger('destroy', this.comm.model); | |||
55 | delete this.comm.model; // Delete ref so GC will collect widget model. |
|
56 | delete this.comm.model; // Delete ref so GC will collect widget model. | |
56 | delete this.comm; |
|
57 | delete this.comm; | |
57 | delete this.model_id; // Delete id from model so widget manager cleans up. |
|
58 | 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