MegaList icon indicating copy to clipboard operation
MegaList copied to clipboard

requestAnimationFrame

Open duncanmeech opened this issue 12 years ago • 0 comments

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);
                    };
        })();

duncanmeech avatar Nov 26 '12 13:11 duncanmeech