Comparing version 2.0.4 to 2.0.5
@@ -1246,3 +1246,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
} | ||
if (!oldNode._component) { | ||
if (!oldNode._component && true !== oldNode._noDiffChild) { | ||
diffChildren(oldNode.children, newNode.children, index, patches, currentPatch); | ||
@@ -1346,2 +1346,7 @@ } | ||
len = node.childNodes ? node.childNodes.length : 0; | ||
if (node._element) { | ||
if (node._element._noDiffChild || node._element._component) { | ||
len = 0; | ||
} | ||
} | ||
if (node._component) { | ||
@@ -1431,6 +1436,8 @@ len = 0; | ||
el = node.childNodes[index]; | ||
if (el._element && el._element.destroy) { | ||
el._element.destroy(); | ||
if (el) { | ||
if (el._element && el._element.destroy) { | ||
el._element.destroy(); | ||
} | ||
node.removeChild(el); | ||
} | ||
node.removeChild(el); | ||
} | ||
@@ -1778,3 +1785,4 @@ staticNodeList.splice(index, 1); | ||
exports['html'] = function(el, value) { | ||
return el.innerHTML = value != null ? value : ''; | ||
el.innerHTML = value != null ? value : ''; | ||
return el._element._noDiffChild = true; | ||
}; | ||
@@ -1781,0 +1789,0 @@ |
{ | ||
"name": "mcoreapp", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "simple MVVM", | ||
@@ -5,0 +5,0 @@ "main": "dist/mcoreApp.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
840872
11122