()
| 13 | let disconnectCurrentDragPreview; |
| 14 | |
| 15 | function reconnectDragSource() { |
| 16 | if (disconnectCurrentDragSource) { |
| 17 | disconnectCurrentDragSource(); |
| 18 | disconnectCurrentDragSource = null; |
| 19 | } |
| 20 | |
| 21 | if (currentHandlerId && currentDragSourceNode) { |
| 22 | disconnectCurrentDragSource = backend.connectDragSource( |
| 23 | currentHandlerId, |
| 24 | currentDragSourceNode, |
| 25 | currentDragSourceOptions, |
| 26 | ); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | function reconnectDragPreview() { |
| 31 | if (disconnectCurrentDragPreview) { |
no test coverage detected