From bc937bfae6749ecc086e7ca34437608f1b787805 Mon Sep 17 00:00:00 2001 From: Federico Zivolo Date: Fri, 26 Sep 2014 13:38:15 +0200 Subject: [PATCH] fixed regex (yes, again) --- material/ripples.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/material/ripples.js b/material/ripples.js index 8a27d087..6be4ce47 100644 --- a/material/ripples.js +++ b/material/ripples.js @@ -57,7 +57,7 @@ var ripples = { $ripple.setAttribute("style", $ripple.getAttribute("style") + ["-ms-" + scale,"-moz-" + scale,"-webkit-" + scale,scale].join(";")); // Dirty fix for Firefox... seems like absolute elements inside tags do not trigger the "click" event - if (/firefox|crios|(safari(?!chrome))|ip(ad|hone|od)/i.test(navigator.userAgent)) { + if (/firefox|crios|(^(?!.*chrome).*safari)|ip(ad|hone|od)/i.test(navigator.userAgent)) { $el.click(); }