Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 44f3541

Browse files
Hedger WangHedger Wang
authored andcommitted
fix typo
1 parent 1fa2fe0 commit 44f3541

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

plugins/BananaSlug/BananaSlugFrontendControl.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ const StateRecord = immutable.Record({
3333
class BananaSlugFrontendControl extends
3434
React.Component<DefaultProps, Props, State> {
3535
_defaultState: ControlState;
36-
_toogle: (b: boolean) => void;
36+
_toggle: (b: boolean) => void;
3737

3838
constructor(props: Props) {
3939
super(props);
40-
this._toogle = this._toogle.bind(this);
40+
this._toggle = this._toggle.bind(this);
4141
this._defaultState = new StateRecord();
4242
}
4343

@@ -50,7 +50,7 @@ class BananaSlugFrontendControl extends
5050
render(): ReactElement {
5151
var state = this.props.state || this._defaultState;
5252
return (
53-
<div style={styles.container} onClick={this._toogle} tabIndex={0}>
53+
<div style={styles.container} onClick={this._toggle} tabIndex={0}>
5454
<input
5555
style={styles.checkbox}
5656
type="checkbox"
@@ -62,7 +62,7 @@ class BananaSlugFrontendControl extends
6262
);
6363
}
6464

65-
_toogle() {
65+
_toggle() {
6666
var state = this.props.state || this._defaultState;
6767
var nextState = state.merge({
6868
enabled: !state.enabled,

0 commit comments

Comments
 (0)