()
| 34 | } |
| 35 | |
| 36 | componentDidMount () { |
| 37 | PubSub.subscribe(ADD_MODAL, this.addModal.bind(this)); |
| 38 | |
| 39 | PubSub.subscribe(REMOVE_MODAL, this.removeModal.bind(this)); |
| 40 | |
| 41 | PubSub.subscribe(CLICKAWAY, () => { |
| 42 | let props = modals[modals.length - 1]; |
| 43 | if (props.clickaway) { |
| 44 | PubSub.publish(REMOVE_MODAL); |
| 45 | } |
| 46 | }); |
| 47 | } |
| 48 | |
| 49 | addModal (topic, props) { |
| 50 | let isReplace = false; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…