Workaround of Firefox bug introduced lately.

master
Dmitry Baranovskiy 2014-05-09 11:07:34 +10:00
parent f39b99ee06
commit 40f0c95002
1 changed files with 1 additions and 1 deletions

View File

@ -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) + "%"});