提交 a1b13cf9 编写于 作者: fxy060608's avatar fxy060608

fix(v3): iOS setTimeout

上级 871f87b7
...@@ -1939,7 +1939,8 @@ if (typeof Promise !== 'undefined' && isNative(Promise)) { ...@@ -1939,7 +1939,8 @@ if (typeof Promise !== 'undefined' && isNative(Promise)) {
// microtask queue but the queue isn't being flushed, until the browser // microtask queue but the queue isn't being flushed, until the browser
// needs to do some other work, e.g. handle a timer. Therefore we can // needs to do some other work, e.g. handle a timer. Therefore we can
// "force" the microtask queue to be flushed by adding an empty timer. // "force" the microtask queue to be flushed by adding an empty timer.
if (isIOS) { setTimeout(noop); } // fixed by xxxxxx
// if (isIOS) { setTimeout(noop); }
}; };
} else if (!isIE && typeof MutationObserver !== 'undefined' && ( } else if (!isIE && typeof MutationObserver !== 'undefined' && (
isNative(MutationObserver) || isNative(MutationObserver) ||
...@@ -6670,7 +6671,7 @@ function updateDOMListeners (oldVnode, vnode) { ...@@ -6670,7 +6671,7 @@ function updateDOMListeners (oldVnode, vnode) {
var on = vnode.data.on || {}; var on = vnode.data.on || {};
var oldOn = oldVnode.data.on || {}; var oldOn = oldVnode.data.on || {};
target$1 = vnode.elm; target$1 = vnode.elm;
// fixed by xxxxxx 存储 vd // fixed by xxxxxx 存储 vd
target$1._$vd = vnode.context._$vd; target$1._$vd = vnode.context._$vd;
var context = vnode.context; var context = vnode.context;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册