Move the dom.vnodes assignement up one line.
It makes it possible to peek into the vnodes tree from the `oncreate` hook of a component.
This commit is contained in:
parent
d64c6175a9
commit
75f1bd2f71
1 changed files with 1 additions and 1 deletions
|
|
@ -518,8 +518,8 @@ module.exports = function($window) {
|
|||
|
||||
if (!(vnodes instanceof Array)) vnodes = [vnodes]
|
||||
updateNodes(dom, dom.vnodes, Node.normalizeChildren(vnodes), hooks, null, undefined)
|
||||
for (var i = 0; i < hooks.length; i++) hooks[i]()
|
||||
dom.vnodes = vnodes
|
||||
for (var i = 0; i < hooks.length; i++) hooks[i]()
|
||||
if ($doc.activeElement !== active) active.focus()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue