Skip to content

Commit

Permalink
Add missing delete to requestIdleCallback
Browse files Browse the repository at this point in the history
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 ce0235e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Core/Timers/JSTimers.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ const JSTimers = {
const timeoutId = requestIdleCallbackTimeouts[id];
if (timeoutId) {
JSTimers.clearTimeout(timeoutId);
requestIdleCallbackTimeouts[id];
delete requestIdleCallbackTimeouts[id];
}
return func(deadline);
}
Expand Down

0 comments on commit ce0235e

Please sign in to comment.