diff options
| author | Monika <monika_hedman@brown.edu> | 2019-06-25 12:38:51 -0400 |
|---|---|---|
| committer | Monika <monika_hedman@brown.edu> | 2019-06-25 12:38:51 -0400 |
| commit | b954eeb57c1ba7a459d85ca7f98855e1b4134267 (patch) | |
| tree | dea7c5d33ac622c83105f2bf683273374f8e9199 /src/client/views/search/CheckBox.tsx | |
| parent | 469b070c1c0f5a9d08e7824a4ce430b84f3fcce5 (diff) | |
lots of clean up (css & variables)
Diffstat (limited to 'src/client/views/search/CheckBox.tsx')
| -rw-r--r-- | src/client/views/search/CheckBox.tsx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/client/views/search/CheckBox.tsx b/src/client/views/search/CheckBox.tsx index c75980e7c..a9d48219a 100644 --- a/src/client/views/search/CheckBox.tsx +++ b/src/client/views/search/CheckBox.tsx @@ -16,11 +16,11 @@ interface CheckBoxProps { @observer export class CheckBox extends React.Component<CheckBoxProps>{ // true = checked, false = unchecked - @observable _status: boolean; - @observable uncheckTimeline: anime.AnimeTimelineInstance; - @observable checkTimeline: anime.AnimeTimelineInstance; - @observable checkRef: any; - @observable _resetReaction?: IReactionDisposer; + @observable private _status: boolean; + @observable private uncheckTimeline: anime.AnimeTimelineInstance; + @observable private checkTimeline: anime.AnimeTimelineInstance; + @observable private checkRef: any; + @observable private _resetReaction?: IReactionDisposer; constructor(props: CheckBoxProps) { @@ -60,15 +60,15 @@ export class CheckBox extends React.Component<CheckBoxProps>{ } this._resetReaction = reaction( - () => this.props.parent.resetBoolean, + () => this.props.parent._resetBoolean, () => { - if (this.props.parent.resetBoolean) { + if (this.props.parent._resetBoolean) { runInAction(() => { this.reset(); - this.props.parent.resetCounter++; - if (this.props.parent.resetCounter === this.props.numCount) { - this.props.parent.resetCounter = 0; - this.props.parent.resetBoolean = false; + this.props.parent._resetCounter++; + if (this.props.parent._resetCounter === this.props.numCount) { + this.props.parent._resetCounter = 0; + this.props.parent._resetBoolean = false; } }); } |
