Re:Allora – Use promises on any JavaScript object
by foota on Monday July 18, 2016 @07:41PM
(#12118628)
requestAnimationFrame doesn't repeat, it only triggers the function once, you have to request an animation frame on each render to have it run again. Valid point however regarding the other things. Might be a neat api to have like a generator for these kinds of things, something like:
for click in window.document.body:
// do something with click
and then stick this in an async function?
[ Parent
| on HN ]
Re:Allora – Use promises on any JavaScript object
by gianlucaguarini on Tuesday July 19, 2016 @12:55AM
(#12119783)
See my answer above :)