Skip to content

Commit 0e8af34

Browse files
committed
check MutationObserver native-ness
1 parent fd5ea73 commit 0e8af34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/util/env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const nextTick = (function () {
6161
// "force" the microtask queue to be flushed by adding an empty timer.
6262
if (isIOS) setTimeout(noop)
6363
}
64-
} else if (typeof MutationObserver !== 'undefined') {
64+
} else if (typeof MutationObserver !== 'undefined' && isNative(MutationObserver)) {
6565
// use MutationObserver where native Promise is not available,
6666
// e.g. IE11, iOS7, Android 4.4
6767
var counter = 1

0 commit comments

Comments
 (0)