How come this SVG pie timer animation dies upon completion in Chrome? Works fine in Firefox.
http://jsfiddle.net/xgjpL3bg/14/
HTML:
<div class="test">
<div class="pie">
<svg id="me" viewBox="0 0 350 350">
<path d="M 175, 175 m 0, -75 a 75, 75 0 1, 0 0, 150 a 75, 75 0 1, 0 0, -150" fill="none" stroke="#ccc" stroke-width="150" stroke-dasharray="0 600 600 0" stroke-dashoffset="1000">
<animate id="halt" attributeName="stroke-dashoffset" from="125" to="125" dur="1ms" fill="freeze" />
<animate id="action" begin="indefinite" attributeName="stroke-dashoffset" from="125" to="600" dur="2s" fill="freeze" />
</path>
</svg>
</div>
</div>
JS:
function resetPie() {
$('#action')[0].endElement();
$('#halt')[0].beginElement();
}
$('.test').bind('mouseenter', function() {
$('#action')[0].beginElement();
}).mouseleave(resetPie);
$('#action').on('endEvent', resetPie);