From ce0235e04ed812fbbacca422db7e6fb100851c6e Mon Sep 17 00:00:00 2001 From: Elliott Sprehn Date: Mon, 11 Sep 2017 17:59:55 -0700 Subject: [PATCH] Add missing delete to requestIdleCallback Summary: This line accidentally became a no-op when the Map was converted to an Object. Closes https://github.com/facebook/react-native/pull/15891 Differential Revision: D5811069 Pulled By: TheSavior fbshipit-source-id: 43ac1835d15e2bee67ee45646bc238f917013836 --- Libraries/Core/Timers/JSTimers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Core/Timers/JSTimers.js b/Libraries/Core/Timers/JSTimers.js index f60a4580b..2b2f8dd16 100644 --- a/Libraries/Core/Timers/JSTimers.js +++ b/Libraries/Core/Timers/JSTimers.js @@ -331,7 +331,7 @@ const JSTimers = { const timeoutId = requestIdleCallbackTimeouts[id]; if (timeoutId) { JSTimers.clearTimeout(timeoutId); - requestIdleCallbackTimeouts[id]; + delete requestIdleCallbackTimeouts[id]; } return func(deadline); }