parent
696b5cbfe3
commit
9e9b89d900
3 changed files with 108 additions and 0 deletions
|
|
@ -885,6 +885,16 @@ module.exports = function($window) {
|
|||
vnode.dom = old.dom
|
||||
vnode.domSize = old.domSize
|
||||
vnode.instance = old.instance
|
||||
// One would think having the actual latest attributes would be ideal,
|
||||
// but it doesn't let us properly diff based on our current internal
|
||||
// representation. We have to save not only the old DOM info, but also
|
||||
// the attributes used to create it, as we diff *that*, not against the
|
||||
// DOM directly (with a few exceptions in `setAttr`). And, of course, we
|
||||
// need to save the children and text as they are conceptually not
|
||||
// unlike special "attributes" internally.
|
||||
vnode.attrs = old.attrs
|
||||
vnode.children = old.children
|
||||
vnode.text = old.text
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue