()
| 9 | let disconnectCurrentDropTarget; |
| 10 | |
| 11 | function reconnectDropTarget() { |
| 12 | if (disconnectCurrentDropTarget) { |
| 13 | disconnectCurrentDropTarget(); |
| 14 | disconnectCurrentDropTarget = null; |
| 15 | } |
| 16 | |
| 17 | if (currentHandlerId && currentDropTargetNode) { |
| 18 | disconnectCurrentDropTarget = backend.connectDropTarget( |
| 19 | currentHandlerId, |
| 20 | currentDropTargetNode, |
| 21 | currentDropTargetOptions, |
| 22 | ); |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | function receiveHandlerId(handlerId) { |
| 27 | if (handlerId === currentHandlerId) { |
no test coverage detected