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

Function getParent

dragula.js:566–566  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

564function getRectWidth (rect) { return rect.width || (rect.right - rect.left); }
565function getRectHeight (rect) { return rect.height || (rect.bottom - rect.top); }
566function getParent (el) { return el.parentNode === doc ? null : el.parentNode; }
567function isInput (el) { return el.tagName === 'INPUT' || el.tagName === 'TEXTAREA' || el.tagName === 'SELECT' || isEditable(el); }
568function isEditable (el) {
569 if (!el) { return false; } // no parents were editable

Callers 10

canStartFunction · 0.85
endFunction · 0.85
dropFunction · 0.85
removeFunction · 0.85
cancelFunction · 0.85
findDropTargetFunction · 0.85
dragFunction · 0.85
removeMirrorImageFunction · 0.85
getImmediateChildFunction · 0.85
isEditableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…