Permalink
Browse files

Add missing delete to requestIdleCallback

Summary:
This line accidentally became a no-op when the Map was converted to an Object.
Closes #15891

Differential Revision: D5811069

Pulled By: TheSavior

fbshipit-source-id: 43ac1835d15e2bee67ee45646bc238f917013836
  • Loading branch information...
esprehn authored and facebook-github-bot committed Sep 12, 2017
1 parent b45c91d commit ce0235e04ed812fbbacca422db7e6fb100851c6e
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}

0 comments on commit ce0235e

Please sign in to comment.