()
| 28 | } |
| 29 | |
| 30 | isDragging() { |
| 31 | invariant( |
| 32 | !isCallingIsDragging, |
| 33 | 'You may not call monitor.isDragging() inside your isDragging() implementation. ' + |
| 34 | 'Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html', |
| 35 | ); |
| 36 | |
| 37 | try { |
| 38 | isCallingIsDragging = true; |
| 39 | return this.internalMonitor.isDraggingSource(this.sourceId); |
| 40 | } finally { |
| 41 | isCallingIsDragging = false; |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | getItemType() { |
| 46 | return this.internalMonitor.getItemType(); |
nothing calls this directly
no test coverage detected