(syntax)
| 50 | } |
| 51 | |
| 52 | handlePreferredSyntaxChange(syntax) { |
| 53 | if (this.state.chosen || this.state.syntax === syntax) { |
| 54 | return; |
| 55 | } |
| 56 | |
| 57 | if (this.props[syntax].trim().length) { |
| 58 | this.setState({ |
| 59 | syntax |
| 60 | }); |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | componentWillUnmount() { |
| 65 | this.unsubscribe(); |
nothing calls this directly
no outgoing calls
no test coverage detected