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" display: "none"
}); });
var flag, var flag,
len = pth.getTotalLength(); len = Snap.path.getTotalLength(pth.attr("d"));
Snap.animate(0, len, function (l) { Snap.animate(0, len, function (l) {
// Safari bug workaround: forcing redraw // Safari bug workaround: forcing redraw
g.attr({width: 100 + (flag = !flag ? 1e-5 : 0) + "%"}); g.attr({width: 100 + (flag = !flag ? 1e-5 : 0) + "%"});