Open GoogleCodeExporter opened 9 years ago
Ok... the fix I mentioned didn'T always work... so I created a closure for the
animation percent and set it to 100%
function cancelAnimation()
{
var mine=$origimg.data("pcent");
if (typeof(mine)=="function")
{
mine();
window.setTimeout(cancelAnimation, options.animationDelay);
}
}
in animateTo: $origimg.data("pcent",function(){pcent=100;});
and in the animator a call to removeData right before calling the callback
Original comment by shadowd...@gmail.com
on 30 Aug 2012 at 10:01
Original issue reported on code.google.com by
shadowd...@gmail.com
on 28 Aug 2012 at 11:07