From 764c35dab2b48c2990c2b8c26ce4683b1fc55615 Mon Sep 17 00:00:00 2001 From: joelcoxokc Date: Mon, 29 Sep 2014 12:51:33 -0700 Subject: [PATCH] Update to ripple.js Bug: If anything with ripple class is clicked too many times too fast, the ripple color stays, and the element becomes darker Fix: on rippleOut($ripple) you have a setTimeout which calls $ripple.remove() - I changed this line to say $('.ripple').remove() This removes any ripple class. I am assuming the user is not going to have multiple mouses trying to make multiple thing ripple at once. Enjoy the change!! I am also making angular directives for this library --- scripts/ripples.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ripples.js b/scripts/ripples.js index 6be4ce47..93a0a713 100644 --- a/scripts/ripples.js +++ b/scripts/ripples.js @@ -78,7 +78,8 @@ var ripples = { // Let ripple fade out (with CSS) setTimeout(function() { - $ripple.remove(); + + $('.ripple').remove(); }, rippleOutTime); };