fix body container problem

This commit is contained in:
kmdjs 2016-05-23 16:38:38 +08:00
parent e3bac3d825
commit 9d48f78c2f
3 changed files with 3 additions and 3 deletions

2
dist/nuclear.js vendored
View File

@ -1494,7 +1494,7 @@ Nuclear._mixObj = function (obj) {
this.parentNode = typeof selector === "string" ? document.querySelector(selector) : selector;
this._nuclearRenderInfo.parent = this.parentNode;
if(document.body === this.parentNode) {
item.parent.insertAdjacentHTML('beforeend',this.HTML);
this.parentNode.insertAdjacentHTML('beforeend',this.HTML);
}else{
this.parentNode.innerHTML = this.HTML;
}

2
dist/nuclear.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -117,7 +117,7 @@ Nuclear._mixObj = function (obj) {
this.parentNode = typeof selector === "string" ? document.querySelector(selector) : selector;
this._nuclearRenderInfo.parent = this.parentNode;
if(document.body === this.parentNode) {
item.parent.insertAdjacentHTML('beforeend',this.HTML);
this.parentNode.insertAdjacentHTML('beforeend',this.HTML);
}else{
this.parentNode.innerHTML = this.HTML;
}