debian-mirror-gitlab/app/assets/javascripts/editor/utils.js

12 lines
193 B
JavaScript
Raw Normal View History

2020-03-09 13:42:32 +05:30
export const clearDomElement = el => {
if (!el || !el.firstChild) return;
while (el.firstChild) {
el.removeChild(el.firstChild);
}
};
export default () => ({
clearDomElement,
});