fix diff for other null component root cases

This commit is contained in:
Leo Horie 2016-07-08 15:08:56 -04:00
parent abadcfc13a
commit ffa9736151
2 changed files with 43 additions and 2 deletions

View file

@ -248,6 +248,10 @@ module.exports = function($window) {
vnode.dom = vnode.instance.dom
vnode.domSize = vnode.instance.domSize
}
else if (old.instance != null) {
removeNode(parent, old.instance, null, false)
vnode.dom = vnode.domSize = undefined
}
}
function isRecyclable(old, vnodes) {
if (old.pool != null && Math.abs(old.pool.length - vnodes.length) <= Math.abs(old.length - vnodes.length)) {