Closed rmcilroy closed 8 years ago
Spec LGTM. /cc @eliperelman @bzbarsky for a second review.
Looks mostly good, except the options
argument can never be omitted; optional dictionary arguments always have an implicit default value of null
(which ends up behaving more or less identically to an empty dictionary, to a first approximation). So you don't have to talk about it being omitted.
The dictionary member can be present or not present. The dictionary is just there.
Would it work to just replace that text with "If options contains a timeout property with positive value"?
I would put it like this:
If the timeout property is present in options and has a positive value, ...
SGTM, changes made in 712579a
@bzbarsky @rmcilroy great stuff, thanks! Merging.
Changes the second argument to requestIdleCallback from a raw timeout to an IdleRequestOptions dictionary which can have a timeout property.
Addresses issue #21.