From 8ac8a34104de993068eacc5a0d8055f021c8e9ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Wed, 1 Mar 2017 14:30:07 +0100 Subject: [PATCH] Remove window when undefined --- src/client/batchUpdate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/batchUpdate.js b/src/client/batchUpdate.js index decf519..5d7acc3 100644 --- a/src/client/batchUpdate.js +++ b/src/client/batchUpdate.js @@ -1,6 +1,6 @@ // fallback to timers if rAF not present const stopUpdate = (typeof window !== 'undefined' ? window.cancelAnimationFrame : null) || clearTimeout -const startUpdate = (typeof window !== 'undefined' ? window.requestAnimationFrame : null) || ((cb) => window.setTimeout(cb, 0)) +const startUpdate = (typeof window !== 'undefined' ? window.requestAnimationFrame : null) || ((cb) => setTimeout(cb, 0)) /** * Performs a batched update. Uses requestAnimationFrame to prevent