Show More
@@ -56,9 +56,9 define([ | |||
|
56 | 56 | return comm.comm_id; |
|
57 | 57 | }; |
|
58 | 58 | |
|
59 |
CommManager.prototype.unregister_comm = function (comm |
|
|
59 | CommManager.prototype.unregister_comm = function (comm) { | |
|
60 | 60 | // Remove a comm from the mapping |
|
61 | delete this.comms[comm_id]; | |
|
61 | delete this.comms[comm.comm_id]; | |
|
62 | 62 | }; |
|
63 | 63 | |
|
64 | 64 | // comm message handlers |
@@ -88,7 +88,7 define([ | |||
|
88 | 88 | if (comm === undefined) { |
|
89 | 89 | return; |
|
90 | 90 | } |
|
91 | delete this.comms[content.comm_id]; | |
|
91 | this.unregister_comm(comm); | |
|
92 | 92 | try { |
|
93 | 93 | comm.handle_close(msg); |
|
94 | 94 | } catch (e) { |
General Comments 0
You need to be logged in to leave comments.
Login now