(func: (flag: boolean) => any)
| 803 | } |
| 804 | |
| 805 | onVisibleChange(func: (flag: boolean) => any): () => void { |
| 806 | const wrappedFunc = wrapWithEventSwitch(func); |
| 807 | this.emitter.on('visibleChange', wrappedFunc); |
| 808 | return () => { |
| 809 | this.emitter.removeListener('visibleChange', wrappedFunc); |
| 810 | }; |
| 811 | } |
| 812 | |
| 813 | getProp(path: string, createIfNone = true): IProp | null { |
| 814 | return this.props.query(path, createIfNone) || null; |
no test coverage detected