()
| 69 | } |
| 70 | |
| 71 | beginDrag() { |
| 72 | const item = spec.beginDrag(this.props, this.monitor, this.component); |
| 73 | if (process.env.NODE_ENV !== 'production') { |
| 74 | invariant( |
| 75 | isPlainObject(item), |
| 76 | 'beginDrag() must return a plain object that represents the dragged item. ' + |
| 77 | 'Instead received %s. ' + |
| 78 | 'Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html', |
| 79 | item, |
| 80 | ); |
| 81 | } |
| 82 | return item; |
| 83 | } |
| 84 | |
| 85 | endDrag() { |
| 86 | if (!spec.endDrag) { |
nothing calls this directly
no outgoing calls
no test coverage detected