()
| 13 | } |
| 14 | |
| 15 | canDrag() { |
| 16 | invariant( |
| 17 | !isCallingCanDrag, |
| 18 | 'You may not call monitor.canDrag() inside your canDrag() implementation. ' + |
| 19 | 'Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html', |
| 20 | ); |
| 21 | |
| 22 | try { |
| 23 | isCallingCanDrag = true; |
| 24 | return this.internalMonitor.canDragSource(this.sourceId); |
| 25 | } finally { |
| 26 | isCallingCanDrag = false; |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | isDragging() { |
| 31 | invariant( |
nothing calls this directly
no test coverage detected