We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6643cb8 commit f59e903Copy full SHA for f59e903
src/core/util/env.js
@@ -81,7 +81,9 @@ export const nextTick = (function () {
81
} else {
82
// fallback to setTimeout
83
/* istanbul ignore next */
84
- timerFunc = setTimeout
+ timerFunc = () => {
85
+ setTimeout(nextTickHandler, 0)
86
+ }
87
}
88
89
return function queueNextTick (cb: Function, ctx?: Object) {
@@ -91,7 +93,7 @@ export const nextTick = (function () {
91
93
callbacks.push(func)
92
94
if (!pending) {
95
pending = true
- timerFunc(nextTickHandler, 0)
96
+ timerFunc()
97
98
99
})()
0 commit comments