fix body container problem
This commit is contained in:
parent
e20e95afee
commit
0db7a56829
|
@ -1438,7 +1438,7 @@ Nuclear._mixObj = function (obj) {
|
|||
if(!this._nuclearReRender) {
|
||||
if (!this._nuclearParentEmpty) {
|
||||
this.parentNode = typeof selector === "string" ? document.querySelector(selector) : selector;
|
||||
if(document.body!==this.parentNode) {
|
||||
if(document.body === this.parentNode) {
|
||||
this.parentNode=document.createElement('div')
|
||||
document.body.appendChild(this.parentNode);
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -61,7 +61,7 @@ Nuclear._mixObj = function (obj) {
|
|||
if(!this._nuclearReRender) {
|
||||
if (!this._nuclearParentEmpty) {
|
||||
this.parentNode = typeof selector === "string" ? document.querySelector(selector) : selector;
|
||||
if(document.body!==this.parentNode) {
|
||||
if(document.body === this.parentNode) {
|
||||
this.parentNode=document.createElement('div')
|
||||
document.body.appendChild(this.parentNode);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue