mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
b66a16ec4c
This commit updates the implementation of the `getNativeRequestAnimationFrame` and checks whether the current code runs in the browser before retrieving `requestAnimationFrame`. `requestAnimationFrame` is not available when the code is running in the Node.js environment. We have to fallback to `setTimeout` for delaying the change detection. PR Close #50820