Feed in requestAnimationFrame events to VM

Not sure exactly how to use these yet, but it seems helpful to have them in there.
This commit is contained in:
Tim Mickel 2016-07-01 11:52:43 -04:00
parent bb68fcab25
commit 660029010d
4 changed files with 26 additions and 17 deletions

View file

@ -63,6 +63,10 @@ VirtualMachine.prototype.stopAll = function () {
this.vmWorker.postMessage({method: 'stopAll'});
};
VirtualMachine.prototype.animationFrame = function () {
this.vmWorker.postMessage({method: 'animationFrame'});
};
/**
* Export and bind to `window`
*/