Lorsque j'utilise requestAnimationFrame de faire quelques native pris en charge l'animation au sein de code ci-dessous:
var support = {
animationFrame: window.requestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.msRequestAnimationFrame ||
window.oRequestAnimationFrame
};
support.animationFrame(function() {}); //error
support.animationFrame.call(window, function() {}); //right
Directement appeler la "prise en charge.animationFrame" fera "Uncaught TypeError: Illégal invocation" dans chrome! Pourquoi?
Merci!