render: remove check that may hide bugs

This commit is contained in:
Pierre-Yves Gérardy 2017-11-23 15:06:39 +01:00 committed by Pierre-Yves Gérardy
parent fc0240da0f
commit 02aab654f0

View file

@ -420,7 +420,7 @@ module.exports = function($window) {
} }
function insertNode(parent, dom, nextSibling) { function insertNode(parent, dom, nextSibling) {
if (nextSibling && nextSibling.parentNode) parent.insertBefore(dom, nextSibling) if (nextSibling) parent.insertBefore(dom, nextSibling)
else parent.appendChild(dom) else parent.appendChild(dom)
} }