Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var paint = function(rAF){ 'use strict';
- return function paint(before) {
- before();
- return rAF(before), {
- then: function (after) {
- return rAF(rAF.bind(null, after)), this;
- }
- };
- };
- }(
- self.requestAnimationFrame ||
- self.webkitRequestAnimationFrame ||
- self.mozRequestAnimationFrame ||
- self.oRequestAnimationFrame ||
- self.msRequestAnimationFrame ||
- function(fn) { setTimeout(fn, 1000 / 60); }
- );
Add Comment
Please, Sign In to add comment