replaced anonymous function with named function: warnIfUnsavedChangesCaller
This commit is contained in:
parent
707db59458
commit
1a78cebd3b
1 changed files with 5 additions and 1 deletions
|
@ -204,6 +204,10 @@ class IDEView extends React.Component {
|
|||
}
|
||||
}
|
||||
|
||||
warnIfUnsavedChangesCaller(props) {
|
||||
return warnIfUnsavedChanges(props);
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className="ide">
|
||||
|
@ -212,7 +216,7 @@ class IDEView extends React.Component {
|
|||
</Helmet>
|
||||
{this.props.toast.isVisible && <Toast />}
|
||||
<Nav
|
||||
warnIfUnsavedChanges={() => warnIfUnsavedChanges(this.props)}
|
||||
warnIfUnsavedChanges={this.warnIfUnsavedChangesCaller.bind(this, this.props)}
|
||||
cmController={this.cmController}
|
||||
/>
|
||||
<Toolbar />
|
||||
|
|
Loading…
Reference in a new issue