use 0.1.3

This commit is contained in:
张磊 2016-04-25 17:30:00 +08:00
parent 7312bb0aef
commit 8cdc1d7c3a
3 changed files with 9 additions and 5 deletions

6
dist/nuclear.js vendored
View File

@ -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");

2
dist/nuclear.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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");