Fix redundancy (#2213)
* Remove redundant empty fragment return * Rebuild bundles * Update changelog
This commit is contained in:
parent
8f617967ea
commit
ad5118165c
4 changed files with 12 additions and 13 deletions
|
|
@ -4,7 +4,6 @@ var Vnode = require("../render/vnode")
|
|||
|
||||
module.exports = function($window) {
|
||||
var $doc = $window.document
|
||||
var $emptyFragment = $doc.createDocumentFragment()
|
||||
|
||||
var nameSpace = {
|
||||
svg: "http://www.w3.org/2000/svg",
|
||||
|
|
@ -135,12 +134,12 @@ module.exports = function($window) {
|
|||
if (typeof vnode.tag.view === "function") {
|
||||
vnode.state = Object.create(vnode.tag)
|
||||
sentinel = vnode.state.view
|
||||
if (sentinel.$$reentrantLock$$ != null) return $emptyFragment
|
||||
if (sentinel.$$reentrantLock$$ != null) return
|
||||
sentinel.$$reentrantLock$$ = true
|
||||
} else {
|
||||
vnode.state = void 0
|
||||
sentinel = vnode.tag
|
||||
if (sentinel.$$reentrantLock$$ != null) return $emptyFragment
|
||||
if (sentinel.$$reentrantLock$$ != null) return
|
||||
sentinel.$$reentrantLock$$ = true
|
||||
vnode.state = (vnode.tag.prototype != null && typeof vnode.tag.prototype.view === "function") ? new vnode.tag(vnode) : vnode.tag(vnode)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue