模板可替换

This commit is contained in:
kmdjs 2016-04-18 21:07:31 +08:00
parent 41e33e2da4
commit bb29c54c6a
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ Nuclear._mixObj = function (obj) {
window["_nuclearIndex"] = null;
for (var j = 0; j < rpLen; j++) {
var part = item.refreshPart[j];
//part.parentNode为null,代表其已经被子节点替换掉了
//执行完replaceChild原part的parentNode就为null,代表其已经被子节点替换掉了
part.parentNode&&part.parentNode.replaceChild(parts[j], part);
}