Merge pull request #6908 from minrk/del-comm-id

handle setting Widget.comm = None
pull/37/head
Thomas Kluyver 12 years ago
commit aaf660d204

@ -175,7 +175,8 @@ class Widget(LoggingConfigurable):
def _comm_changed(self, name, new):
"""Called when the comm is changed."""
self.comm = new
if new is None:
return
self._model_id = self.model_id
self.comm.on_msg(self._handle_msg)

Loading…
Cancel
Save