git ssb

1+

Matt McKegg / mutant



Tree: 099e49713653c62ab39055b073d7b9d37da7d803

Files: 099e49713653c62ab39055b073d7b9d37da7d803 / animation-frame-proxy.js

208 bytesRaw
1var Proxy = require('./proxy')
2var animationFrame = require('./animation-frame')
3
4module.exports = function AnimationFrameProxy (fn) {
5 var obs = Proxy()
6 animationFrame(() => obs.set(fn()))
7 return obs
8}
9

Built with git-ssb-web