From 40f0c95002c35330e6b6e51254c0e7df4a843130 Mon Sep 17 00:00:00 2001 From: Dmitry Baranovskiy Date: Fri, 9 May 2014 11:07:34 +1000 Subject: [PATCH] Workaround of Firefox bug introduced lately. --- demos/animated-map/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/animated-map/index.html b/demos/animated-map/index.html index ba1d569..0dddd85 100644 --- a/demos/animated-map/index.html +++ b/demos/animated-map/index.html @@ -81,7 +81,7 @@ display: "none" }); var flag, - len = pth.getTotalLength(); + len = Snap.path.getTotalLength(pth.attr("d")); Snap.animate(0, len, function (l) { // Safari bug workaround: forcing redraw g.attr({width: 100 + (flag = !flag ? 1e-5 : 0) + "%"});