"TypeError não capturado: invocação ilegal" no Chrome
Quando eu usorequestAnimationFrame
para fazer alguma animação nativa suportada com o código abaixo:
var support = {
animationFrame: window.requestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.msRequestAnimationFrame ||
window.oRequestAnimationFrame
};
support.animationFrame(function() {}); //error
support.animationFrame.call(window, function() {}); //right
Chamando diretamente osupport.animationFrame
darei..
Uncaught TypeError: invocação ilegal
no Chrome. Por quê