Skip to content

Commit

Permalink
feat(nodejs-platform): implement requestAnimationFrame (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
niieani authored and MeirionHughes committed Nov 13, 2016
1 parent f4a6015 commit b4a8f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodejs-platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class NodeJsPlatform implements IPlatform {
* @return A long integer value, the request id, that uniquely identifies the entry in the callback list.
*/
requestAnimationFrame(callback: (animationFrameStart: number) => void): number {
return this.global.requestAnimationFrame(callback);
return setImmediate(callback);
}

/**
Expand Down

0 comments on commit b4a8f90

Please sign in to comment.