Skip to content

Commit a93667d

Browse files
author
yhx9527
committed
fix: requestAnimationFrame should ensure bind window
1 parent 53b98de commit a93667d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dom/DomEvent.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ DomEvent.requestAnimationFrame = new function() {
8585
requested = false,
8686
callbacks = [],
8787
timer;
88+
if (nativeRequest) {
89+
nativeRequest = nativeRequest.bind(window);
90+
}
8891

8992
function handleCallbacks() {
9093
// Make a local references to the current callbacks array and set

0 commit comments

Comments
 (0)