Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function handleMDCRipple(elements) {
if (!elements) {
console.log('There are no elements that are fit for ripple effect');
} else {
for (var i = 0; i < elements.length; i++) {
new MDCRipple(elements[i]);
elements[i].unbounded = true;
}
}
};
initRipple = icon => {
if (!icon) return;
const current = new MDCRipple(icon);
current.unbounded = true;
this.ripples.push(current);
}