(createBackend, context = {})
| 5 | |
| 6 | export default class DragDropManager { |
| 7 | constructor(createBackend, context = {}) { |
| 8 | const store = createStore(reducer); |
| 9 | this.context = context; |
| 10 | this.store = store; |
| 11 | this.monitor = new DragDropMonitor(store); |
| 12 | this.registry = this.monitor.registry; |
| 13 | this.backend = createBackend(this); |
| 14 | |
| 15 | store.subscribe(this.handleRefCountChange.bind(this)); |
| 16 | } |
| 17 | |
| 18 | handleRefCountChange() { |
| 19 | const shouldSetUp = this.store.getState().refCount > 0; |
nothing calls this directly
no test coverage detected