From 77b8e4436df0d695c9f0a63c9d3b80154110d47b Mon Sep 17 00:00:00 2001 From: Dmitry Baranovskiy Date: Wed, 16 Oct 2013 23:52:37 +1100 Subject: [PATCH] Small typo in code --- demos/animated-map/index.html | 5 ++--- demos/animated-snap-logo/index.html | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/demos/animated-map/index.html b/demos/animated-map/index.html index 98038e9..fa3623b 100644 --- a/demos/animated-map/index.html +++ b/demos/animated-map/index.html @@ -83,10 +83,9 @@ var flag, len = pth.getTotalLength(); Snap.animate(0, len, function (l) { - flag = !flag; // Safari bug workaround: forcing redraw - g.attr({width: 100 + (flag ? .00001 : 0) + "%"}); - + g.attr({width: 100 + (flag = !flag ? 1e-5 : 0) + "%"}); + // var dot = pth.getPointAtLength(l); flight.attr({ d: pth.getSubpath(0, l) diff --git a/demos/animated-snap-logo/index.html b/demos/animated-snap-logo/index.html index 16c154a..b6bab7a 100644 --- a/demos/animated-snap-logo/index.html +++ b/demos/animated-snap-logo/index.html @@ -50,7 +50,7 @@ }, 200, mina.easeout); setTimeout(animateEach, 200); i++; - }; + } setTimeout(function () { logo.attr({