* 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 dr
(target)
| 2308 | * @return {Number} Direction dragEl must be swapped |
| 2309 | */ |
| 2310 | function _getInsertDirection(target) { |
| 2311 | if (index(dragEl) < index(target)) { |
| 2312 | return 1; |
| 2313 | } else { |
| 2314 | return -1; |
| 2315 | } |
| 2316 | } |
| 2317 | |
| 2318 | /** |
| 2319 | * Generate id |
no test coverage detected
searching dependent graphs…