enthought/enaml — pull request #186 by rkern (2012-09-05 14:31:58+00:00)
Title: BUG: Set `initialized` to False when destroying a component.

Sometimes when using a `::` operator, the notification will be fired after the component has been destroyed and the expressions cleared out.

https://github.com/enthought/enaml/blob/master/enaml/core/base_component.py#L529

Since this is guarded by checking `initialized`, I think it makes sense to "de-initialize" the component on destruction.