##// END OF EJS Templates
Fix a bug in using promises with comms: this -> that
Jason Grout -
Show More
@@ -106,9 +106,9 b' define(['
106 106 console.error('Comm promise not found for comm id ' + content.comm_id);
107 107 return;
108 108 }
109
109 var that = this;
110 110 this.comms[content.comm_id] = this.comms[content.comm_id].then(function(comm) {
111 this.unregister_comm(comm);
111 that.unregister_comm(comm);
112 112 try {
113 113 comm.handle_close(msg);
114 114 } catch (e) {
General Comments 0
You need to be logged in to leave comments. Login now