Merge pull request #1016 from gyandeeps/next
Update: Big Perf improvement for IE (fixes #199)
This commit is contained in:
commit
0c17dd617d
1 changed files with 4 additions and 1 deletions
|
|
@ -861,6 +861,9 @@
|
||||||
// set attributes first, then create children
|
// set attributes first, then create children
|
||||||
var attrs = constructAttrs(data, node, namespace, hasKeys)
|
var attrs = constructAttrs(data, node, namespace, hasKeys)
|
||||||
|
|
||||||
|
// add the node to its parent before attaching children to it
|
||||||
|
insertNode(parentElement, node, index)
|
||||||
|
|
||||||
var children = constructChildren(data, node, cached, editable,
|
var children = constructChildren(data, node, cached, editable,
|
||||||
namespace, configs)
|
namespace, configs)
|
||||||
|
|
||||||
|
|
@ -884,7 +887,7 @@
|
||||||
controllers)
|
controllers)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isNew || shouldReattach === true && node != null) {
|
if (!isNew && shouldReattach === true && node != null) {
|
||||||
insertNode(parentElement, node, index)
|
insertNode(parentElement, node, index)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue