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() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className="ide">
|
<div className="ide">
|
||||||
|
@ -212,7 +216,7 @@ class IDEView extends React.Component {
|
||||||
</Helmet>
|
</Helmet>
|
||||||
{this.props.toast.isVisible && <Toast />}
|
{this.props.toast.isVisible && <Toast />}
|
||||||
<Nav
|
<Nav
|
||||||
warnIfUnsavedChanges={() => warnIfUnsavedChanges(this.props)}
|
warnIfUnsavedChanges={this.warnIfUnsavedChangesCaller.bind(this, this.props)}
|
||||||
cmController={this.cmController}
|
cmController={this.cmController}
|
||||||
/>
|
/>
|
||||||
<Toolbar />
|
<Toolbar />
|
||||||
|
|
Loading…
Reference in a new issue