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
|
|
@ -410,7 +410,6 @@ var _9 = function($window, Promise) {
|
|||
var requestService = _9(window, PromisePolyfill)
|
||||
var coreRenderer = function($window) {
|
||||
var $doc = $window.document
|
||||
var $emptyFragment = $doc.createDocumentFragment()
|
||||
var nameSpace = {
|
||||
svg: "http://www.w3.org/2000/svg",
|
||||
math: "http://www.w3.org/1998/Math/MathML"
|
||||
|
|
@ -530,12 +529,12 @@ var coreRenderer = 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