From 63a7754faef3ae5c1a20fbfdf34322e3e301c2ed Mon Sep 17 00:00:00 2001 From: Elliott Sprehn Date: Mon, 11 Sep 2017 11:49:22 -0700 Subject: [PATCH] Add missing delete to requestIdleCallback This line accidentally became a no-op when the Map was converted to an Object. --- 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 f60a4580b375df..2b2f8dd164e3db 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); }