fix body container problem
This commit is contained in:
parent
e3bac3d825
commit
9d48f78c2f
|
@ -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;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue