diff --git a/src/js/react_views/CommandView.jsx b/src/js/react_views/CommandView.jsx index d887af3c..6a7e4b85 100644 --- a/src/js/react_views/CommandView.jsx +++ b/src/js/react_views/CommandView.jsx @@ -15,17 +15,11 @@ class CommandView extends React.Component{ componentDidMount() { this.props.command.on('change', this.updateStateFromModel, this); - this.props.command.on('destroy', this.onModelDestroy, this); this.updateStateFromModel(); } componentWillUnmount() { this.props.command.off('change', this.updateStateFromModel, this); - this.props.command.off('destroy', this.onModelDestroy, this); - } - - onModelDestroy() { - ReactDOM.unmountComponentAtNode(ReactDOM.findDOMNode(this).parentNode); } updateStateFromModel() {