* Gets the direction dragEl must be swapped relative to target in order to make it * seem that dragEl has been "inserted" into that element's position * @param {HTMLElement} target The target whose position dragEl is being inserted at * @return {Number} Direction dragEl m
(target)
| 2302 | * @return {Number} Direction dragEl must be swapped |
| 2303 | */ |
| 2304 | function _getInsertDirection(target) { |
| 2305 | if (index(dragEl) < index(target)) { |
| 2306 | return 1; |
| 2307 | } else { |
| 2308 | return -1; |
| 2309 | } |
| 2310 | } |
| 2311 | |
| 2312 | /** |
| 2313 | * Generate id |
no test coverage detected
searching dependent graphs…