Bind onImageError in constructor

Tt uses `this` but wasn't bound anywhere so the error handler was
just throwing an exception.
This commit is contained in:
David Baker 2018-04-23 18:14:59 +01:00
parent 0d223bd5e4
commit f5956c87f6

View file

@ -49,6 +49,7 @@ export default class extends React.Component {
super(props);
this.onAction = this.onAction.bind(this);
this.onImageError = this.onImageError.bind(this);
this.onImageEnter = this.onImageEnter.bind(this);
this.onImageLeave = this.onImageLeave.bind(this);
this.onClientSync = this.onClientSync.bind(this);