Bundled output for commit 50a80e5590 [skip ci]
This commit is contained in:
parent
50a80e5590
commit
c263cf2494
2 changed files with 9 additions and 9 deletions
|
|
@ -348,7 +348,7 @@ var renderService = function($window) {
|
|||
}
|
||||
//update
|
||||
function updateNodes(parent, old, vnodes, hooks, nextSibling, ns) {
|
||||
if (old == null && vnodes == null) return
|
||||
if (old === vnodes || old == null && vnodes == null) return
|
||||
else if (old == null) createNodes(parent, vnodes, 0, vnodes.length, hooks, nextSibling, undefined)
|
||||
else if (vnodes == null) removeNodes(parent, old, 0, old.length, vnodes)
|
||||
else {
|
||||
|
|
@ -357,7 +357,7 @@ var renderService = function($window) {
|
|||
|
||||
if (old.length === vnodes.length && vnodes[0] != null && vnodes[0].key == null) {
|
||||
for (var i = 0; i < old.length; i++) {
|
||||
if (old[i] == null && vnodes[i] == null) continue
|
||||
if (old[i] === vnodes[i] || old[i] == null && vnodes[i] == null) continue
|
||||
else if (old[i] == null) insertNode(parent, createNode(vnodes[i], hooks, ns), getNextSibling(old, i + 1, nextSibling))
|
||||
else if (vnodes[i] == null) removeNodes(parent, old, i, i + 1, vnodes)
|
||||
else updateNode(parent, old[i], vnodes[i], hooks, getNextSibling(old, i + 1, nextSibling), recycling, ns)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue