fix #1638
This commit is contained in:
parent
fc038f9d85
commit
7668ddd120
1 changed files with 2 additions and 1 deletions
|
|
@ -20,8 +20,8 @@ module.exports = function($window) {
|
||||||
}
|
}
|
||||||
function createNode(parent, vnode, hooks, ns, nextSibling) {
|
function createNode(parent, vnode, hooks, ns, nextSibling) {
|
||||||
var tag = vnode.tag
|
var tag = vnode.tag
|
||||||
if (vnode.attrs != null) initLifecycle(vnode.attrs, vnode, hooks)
|
|
||||||
if (typeof tag === "string") {
|
if (typeof tag === "string") {
|
||||||
|
if (vnode.attrs != null) initLifecycle(vnode.attrs, vnode, hooks)
|
||||||
switch (tag) {
|
switch (tag) {
|
||||||
case "#": return createText(parent, vnode, nextSibling)
|
case "#": return createText(parent, vnode, nextSibling)
|
||||||
case "<": return createHTML(parent, vnode, nextSibling)
|
case "<": return createHTML(parent, vnode, nextSibling)
|
||||||
|
|
@ -116,6 +116,7 @@ module.exports = function($window) {
|
||||||
sentinel.$$reentrantLock$$ = true
|
sentinel.$$reentrantLock$$ = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (vnode.attrs != null) initLifecycle(vnode.attrs, vnode, hooks)
|
||||||
initLifecycle(vnode.state, vnode, hooks)
|
initLifecycle(vnode.state, vnode, hooks)
|
||||||
vnode.instance = Vnode.normalize(vnode.state.view(vnode))
|
vnode.instance = Vnode.normalize(vnode.state.view(vnode))
|
||||||
sentinel.$$reentrantLock$$ = null
|
sentinel.$$reentrantLock$$ = null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue