Fix state initialisation logic
This commit is contained in:
parent
a19eae2792
commit
e1ea2822c9
1 changed files with 1 additions and 3 deletions
|
|
@ -95,9 +95,7 @@ module.exports = function($window) {
|
|||
return element
|
||||
}
|
||||
function createComponent(vnode, hooks, ns) {
|
||||
// For object literals since `Vnode()` always sets the `state` field.
|
||||
if (!vnode.state) vnode.state = Object.create(vnode.tag)
|
||||
|
||||
vnode.state = Object.create(vnode.tag)
|
||||
var view = vnode.tag.view
|
||||
if (view.reentrantLock != null) return $emptyFragment
|
||||
view.reentrantLock = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue