##// END OF EJS Templates
handle setting Widget.comm = None...
Min RK -
Show More
@@ -175,7 +175,8 b' class Widget(LoggingConfigurable):'
175
175
176 def _comm_changed(self, name, new):
176 def _comm_changed(self, name, new):
177 """Called when the comm is changed."""
177 """Called when the comm is changed."""
178 self.comm = new
178 if new is None:
179 return
179 self._model_id = self.model_id
180 self._model_id = self.model_id
180
181
181 self.comm.on_msg(self._handle_msg)
182 self.comm.on_msg(self._handle_msg)
General Comments 0
You need to be logged in to leave comments. Login now