use 0.1.3
This commit is contained in:
parent
7312bb0aef
commit
8cdc1d7c3a
|
@ -36,8 +36,10 @@ Nuclear._mixObj = function (obj) {
|
|||
this.option = option;
|
||||
if (!this._nuclearParentEmpty) {
|
||||
this.parent = typeof selector === "string" ? document.querySelector(selector) : selector;
|
||||
while (this.parent.firstChild) {
|
||||
this.parent.removeChild(this.parent.firstChild);
|
||||
if(document.body!==this.parent) {
|
||||
while (this.parent.firstChild) {
|
||||
this.parent.removeChild(this.parent.firstChild);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.parent = document.createElement("div");
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -18,8 +18,10 @@ Nuclear._mixObj = function (obj) {
|
|||
this.option = option;
|
||||
if (!this._nuclearParentEmpty) {
|
||||
this.parent = typeof selector === "string" ? document.querySelector(selector) : selector;
|
||||
while (this.parent.firstChild) {
|
||||
this.parent.removeChild(this.parent.firstChild);
|
||||
if(document.body!==this.parent) {
|
||||
while (this.parent.firstChild) {
|
||||
this.parent.removeChild(this.parent.firstChild);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.parent = document.createElement("div");
|
||||
|
|
Loading…
Reference in New Issue