fixed #205
This commit is contained in:
梁灏 2017-01-16 12:29:03 +08:00
parent f36be426d4
commit b89a982e64
7 changed files with 111 additions and 23 deletions

View file

@ -50,7 +50,7 @@
const cell = document.createElement('div');
cell.innerHTML = template;
const _oldParentChildLen = $parent.$children.length;
$parent.$compile(cell);
$parent.$compile(cell); // todo ready
const _newParentChildLen = $parent.$children.length;
if (_oldParentChildLen !== _newParentChildLen) { // if render normal html node, do not tag