* 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)
| 1907 | * @return {Number} Direction dragEl must be swapped |
| 1908 | */ |
| 1909 | function _getInsertDirection(target) { |
| 1910 | if (index(dragEl) < index(target)) { |
| 1911 | return 1; |
| 1912 | } else { |
| 1913 | return -1; |
| 1914 | } |
| 1915 | } |
| 1916 | |
| 1917 | |
| 1918 | /** |
no test coverage detected
searching dependent graphs…