##// END OF EJS Templates
avoid unregistering widget model twice...
MinRK -
Show More
@@ -164,8 +164,8 b' class Widget(LoggingConfigurable):'
164 Closes the underlying comm.
164 Closes the underlying comm.
165 When the comm is closed, all of the widget views are automatically
165 When the comm is closed, all of the widget views are automatically
166 removed from the front-end."""
166 removed from the front-end."""
167 del Widget.widgets[self.model_id]
168 if self._comm is not None:
167 if self._comm is not None:
168 Widget.widgets.pop(self.model_id, None)
169 self._comm.close()
169 self._comm.close()
170 self._comm = None
170 self._comm = None
171
171
General Comments 0
You need to be logged in to leave comments. Login now