From 47ef4d9d8ede1962eefd86d3b2cc05b40c8f7e6f Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Tue, 4 Aug 2020 14:46:36 +0300 Subject: [PATCH] Remove event --- src/components/ripple/Ripple.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/components/ripple/Ripple.js b/src/components/ripple/Ripple.js index 9c54cd51d..3ba4729dd 100644 --- a/src/components/ripple/Ripple.js +++ b/src/components/ripple/Ripple.js @@ -2,12 +2,10 @@ import DomHandler from '../utils/DomHandler'; function bindEvents(el) { el.addEventListener('mousedown', onMouseDown); - el.addEventListener('mouseleave', onMouseLeave); } function unbindEvents(el) { el.removeEventListener('mousedown', onMouseDown); - el.removeEventListener('mouseleave', onMouseLeave); } function create(el) { @@ -50,18 +48,6 @@ function onMouseDown(event) { DomHandler.addClass(ink, 'p-ink-active'); } -function onMouseLeave(event) { - resetInk(event); -} - -function resetInk(event) { - let target = event.target; - let ink = getInk(target); - if (ink) { - DomHandler.removeClass(ink, 'p-ink-active'); - } -} - function onAnimationEnd(event) { DomHandler.removeClass(event.currentTarget, 'p-ink-active'); }