MCPcopy
hub / github.com/bevacqua/dragula / accepted

Function accepted

dragula.js:344–357  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342 return target;
343
344 function accepted () {
345 var droppable = isContainer(target);
346 if (droppable === false) {
347 return false;
348 }
349
350 var immediate = getImmediateChild(target, elementBehindCursor);
351 var reference = getReference(target, immediate, clientX, clientY);
352 var initial = isInitialPlacement(target, reference);
353 if (initial) {
354 return true; // should always be able to drop it right back where it was
355 }
356 return o.accepts(_item, target, _source, reference);
357 }
358 }
359
360 function drag (e) {

Callers 1

findDropTargetFunction · 0.85

Calls 4

isContainerFunction · 0.85
getImmediateChildFunction · 0.85
getReferenceFunction · 0.85
isInitialPlacementFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…