Skip to content

Commit 6e48c8b

Browse files
authored
Add requestIdleCallback to list of timers
1 parent a0da84e commit 6e48c8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function isOnCallback (str) {
44

55
function isTimer (fn) {
66
var name = fn.name === 'valueOf' ? fn.name : fn.toString()
7-
return /set[Timeout|Interval|Immediate]|requestAnimationFrame|timer/.test(name)
7+
return /set[Timeout|Interval|Immediate]|requestAnimationFrame|requestIdleCallback|timer/.test(name)
88
}
99

1010
/**

0 commit comments

Comments
 (0)