|
@@ -70,8 +70,11 @@ export const nextTick = (function () {
|
|
|
copies[i]()
|
|
copies[i]()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
/* istanbul ignore if */
|
|
/* istanbul ignore if */
|
|
|
- if (typeof MutationObserver !== 'undefined') {
|
|
|
|
|
|
|
+ if (typeof setImmediate === 'function') {
|
|
|
|
|
+ timerFunc = setImmediate
|
|
|
|
|
+ } else if (typeof MutationObserver !== 'undefined') {
|
|
|
var counter = 1
|
|
var counter = 1
|
|
|
var observer = new MutationObserver(nextTickHandler)
|
|
var observer = new MutationObserver(nextTickHandler)
|
|
|
var textNode = document.createTextNode(counter)
|
|
var textNode = document.createTextNode(counter)
|