MegaList
MegaList copied to clipboard
requestAnimationFrame
The library ( at least the version in the zip file ) is called requestAnimationFrame which is missing. The call should be window.requestAnimationFrame. For browsers without this feature the following might work:
window.requestAnimFrame = (function(){
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
function(callback, element){
window.setTimeout(function(){
callback(+new Date);
}, 1000 / 30);
};
})();