MCPcopy
hub / github.com/pqina/filepond / removeChildView

Function removeChildView

src/js/app/frame/utils/removeChildView.js:1–11  ·  view source on GitHub ↗
(parent, childViews)

Source from the content-addressed store, hash-verified

1export const removeChildView = (parent, childViews) => view => {
2 // remove from child views
3 childViews.splice(childViews.indexOf(view), 1);
4
5 // remove the element
6 if (view.element.parentNode) {
7 parent.removeChild(view.element);
8 }
9
10 return view;
11};

Callers 1

createViewFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected