(x, y)
| 959 | * @return {HTMLElement} Element of the first found nearest Sortable |
| 960 | */ |
| 961 | _detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) { |
| 962 | var ret; |
| 963 | sortables.some(function (sortable) { |
| 964 | var threshold = sortable[expando].options.emptyInsertThreshold; |
| 965 | if (!threshold || lastChild(sortable)) return; |
| 966 | var rect = getRect(sortable), |
| 967 | insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold, |
| 968 | insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold; |
| 969 | if (insideHorizontally && insideVertically) { |
| 970 | return ret = sortable; |
| 971 | } |
| 972 | }); |
| 973 | return ret; |
| 974 | }, |
| 975 | _prepareGroup = function _prepareGroup(options) { |
| 976 | function toFn(value, pull) { |
| 977 | return function (to, from, dragEl, evt) { |
no test coverage detected
searching dependent graphs…