Skip to content

Commit e2baa02

Browse files
sanderpensadozoisch
authored andcommitted
bind "this" to handleErrored function (dozoisch#104)
1 parent 4665e9b commit e2baa02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/recaptcha.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export default class ReCAPTCHA extends React.Component {
55
constructor() {
66
super();
77
this.handleExpired = this.handleExpired.bind(this);
8+
this.handleErrored = this.handleErrored.bind(this);
89
this.handleRecaptchaRef = this.handleRecaptchaRef.bind(this);
910
}
1011

@@ -45,6 +46,7 @@ export default class ReCAPTCHA extends React.Component {
4546
this.props.onChange(null);
4647
}
4748
}
49+
4850
handleErrored() {
4951
if (this.props.onErrored) this.props.onErrored();
5052
}

0 commit comments

Comments
 (0)