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

build:v3

上级 09d39974
......@@ -5640,7 +5640,8 @@ function insertBefore() {
}
function removeChild(node, child) {
if (child && child._$vd) {
if (child && child._$vd) {
// TODO 目前存储的 element 非树形,remove 的不干净(会遗留子节点)
child._$vd.removeElement(child);
}
}
......@@ -6800,13 +6801,14 @@ function updateDOMListeners (oldVnode, vnode) {
var on = vnode.data.on || {};
var oldOn = oldVnode.data.on || {};
target$1 = vnode.elm;
// fixed by xxxxxx 存储 vd
target$1._$vd = vnode.context._$vd;
var context = vnode.context;
target$1._$vd = context._$vd || (context.$root && context.$root._$vd);
// 存储事件标记
target$1.setAttribute('nid', String(vnode.data.attrs['_i']));
target$1.setAttribute('cid', context._$id);
target$1.setAttribute('cid', context._$id || vnode.data.cid);
normalizeEvents(on);
updateListeners(on, oldOn, add$1, remove$2, createOnceHandler$1, vnode.context);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册