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

Function remove

dragula.js:269–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267 }
268
269 function remove () {
270 if (!drake.dragging) {
271 return;
272 }
273 var item = _copy || _item;
274 var parent = getParent(item);
275 if (parent) {
276 parent.removeChild(item);
277 }
278 drake.emit(_copy ? 'cancel' : 'remove', item, parent, _source);
279 cleanup();
280 }
281
282 function cancel (revert) {
283 if (!drake.dragging) {

Callers 1

releaseFunction · 0.70

Calls 2

getParentFunction · 0.85
cleanupFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…