Merge puredom.animationFrame fixes.