##// END OF EJS Templates
Fix notify_trait getting called too early.
Jonathan Frederic -
Show More
@@ -327,11 +327,11 b' class Widget(LoggingConfigurable):'
327 # Trigger default traitlet callback machinery. This allows any user
327 # Trigger default traitlet callback machinery. This allows any user
328 # registered validation to be processed prior to allowing the widget
328 # registered validation to be processed prior to allowing the widget
329 # machinery to handle the state.
329 # machinery to handle the state.
330 super(Widget, self)._notify_trait(name, old_value, new_value)
330 LoggingConfigurable._notify_trait(self, name, old_value, new_value)
331
331
332 # Send the state after the user registered callbacks for trait changes
332 # Send the state after the user registered callbacks for trait changes
333 # have all fired (allows for user to validate values).
333 # have all fired (allows for user to validate values).
334 if name in self.keys:
334 if self.comm is not None and name in self.keys:
335 # Make sure this isn't information that the front-end just sent us.
335 # Make sure this isn't information that the front-end just sent us.
336 if self._should_send_property(name, new_value):
336 if self._should_send_property(name, new_value):
337 # Send new state to front-end
337 # Send new state to front-end
General Comments 0
You need to be logged in to leave comments. Login now