We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CommandView
1 parent 9f2c599 commit 562843fCopy full SHA for 562843f
src/js/react_views/CommandView.jsx
@@ -15,17 +15,11 @@ class CommandView extends React.Component{
15
16
componentDidMount() {
17
this.props.command.on('change', this.updateStateFromModel, this);
18
- this.props.command.on('destroy', this.onModelDestroy, this);
19
this.updateStateFromModel();
20
}
21
22
componentWillUnmount() {
23
this.props.command.off('change', this.updateStateFromModel, this);
24
- this.props.command.off('destroy', this.onModelDestroy, this);
25
- }
26
-
27
- onModelDestroy() {
28
- ReactDOM.unmountComponentAtNode(ReactDOM.findDOMNode(this).parentNode);
29
30
31
updateStateFromModel() {
0 commit comments