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
This commit is contained in:
Elliott Sprehn 2017-09-11 17:59:55 -07:00 committed by Facebook Github Bot
parent b45c91d3e7
commit ce0235e04e
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ const JSTimers = {
const timeoutId = requestIdleCallbackTimeouts[id];
if (timeoutId) {
JSTimers.clearTimeout(timeoutId);
requestIdleCallbackTimeouts[id];
delete requestIdleCallbackTimeouts[id];
}
return func(deadline);
}