(source)
| 10 | }; |
| 11 | |
| 12 | function validateSourceContract(source) { |
| 13 | invariant(typeof source.canDrag === 'function', 'Expected canDrag to be a function.'); |
| 14 | invariant(typeof source.beginDrag === 'function', 'Expected beginDrag to be a function.'); |
| 15 | invariant(typeof source.endDrag === 'function', 'Expected endDrag to be a function.'); |
| 16 | } |
| 17 | |
| 18 | function validateTargetContract(target) { |
| 19 | invariant(typeof target.canDrop === 'function', 'Expected canDrop to be a function.'); |