##// END OF EJS Templates
s/model_name/_model_name
Jonathan Frederic -
Show More
@@ -79,7 +79,7 b' class Widget(LoggingConfigurable):'
79 79 #-------------------------------------------------------------------------
80 80 # Traits
81 81 #-------------------------------------------------------------------------
82 model_name = Unicode('WidgetModel', help="""Name of the backbone model
82 _model_name = Unicode('WidgetModel', help="""Name of the backbone model
83 83 registered in the front-end to create and sync this widget with.""")
84 84 _view_name = Unicode(help="""Default view registered in the front-end
85 85 to use to represent the widget.""", sync=True)
@@ -121,7 +121,7 b' class Widget(LoggingConfigurable):'
121 121 If a Comm doesn't exist yet, a Comm will be created automagically."""
122 122 if self._comm is None:
123 123 # Create a comm.
124 self._comm = Comm(target_name=self.model_name)
124 self._comm = Comm(target_name=self._model_name)
125 125 self._comm.on_msg(self._handle_msg)
126 126 self._comm.on_close(self._close)
127 127 Widget.widgets[self.model_id] = self
General Comments 0
You need to be logged in to leave comments. Login now