Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function reactDragula () {
return dragula.apply(this, atoa(arguments)).on('cloned', cloned);
function cloned (clone) {
rm(clone);
atoa(clone.getElementsByTagName('*')).forEach(rm);
}
function rm (el) {
el.removeAttribute('data-reactid');
}
}
function reactDragula () {
return dragula.apply(this, atoa(arguments)).on('cloned', cloned);
function cloned (clone) {
rm(clone);
atoa(clone.getElementsByTagName('*')).forEach(rm);
}
function rm (el) {
el.removeAttribute('data-reactid');
}
}