Open srivig opened 9 years ago
This fixes it:
find and replace the 'animationLoop' function with this:
function animationLoop(drawData) { var animFrameAmount = (settings.animation)? 1 / CapValue(settings.animationSteps, Number.MAX_VALUE, 1) : 1, cnt =(settings.animation)? 0 : 1; requestAnimFrame(function cb() { cnt += animFrameAmount; animateFrame(cnt, drawData); if (cnt <= 1) { requestAnimFrame(cb); } else { settings.afterDrawed.call($this); } }); }
arguments.callee was removed from ES5 strict mode
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments/callee