8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc70556 commit 38accc1Copy full SHA for 38accc1
src/util/env.js
@@ -72,9 +72,7 @@ export const nextTick = (function () {
72
}
73
74
/* istanbul ignore if */
75
- if (typeof setImmediate === 'function') {
76
- timerFunc = setImmediate
77
- } else if (typeof MutationObserver !== 'undefined') {
+ if (typeof MutationObserver !== 'undefined') {
78
var counter = 1
79
var observer = new MutationObserver(nextTickHandler)
80
var textNode = document.createTextNode(counter)
@@ -85,6 +83,8 @@ export const nextTick = (function () {
85
83
counter = (counter + 1) % 2
86
84
textNode.data = counter
87
+ } else if (typeof setImmediate === 'function') {
+ timerFunc = setImmediate
88
} else {
89
timerFunc = setTimeout
90
0 commit comments