simple-datatables
Advanced tools
Comparing version
{ | ||
"name": "simple-datatables", | ||
"version": "9.0.3", | ||
"version": "9.0.4", | ||
"description": "A lightweight, dependency-free JavaScript HTML table plugin.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -679,10 +679,12 @@ import { | ||
} | ||
if (this.wrapperDOM.parentElement) { | ||
// Restore the initial HTML | ||
const oldDOM = createElement("div") | ||
oldDOM.innerHTML = this._initialHTML | ||
this.wrapperDOM.parentElement.replaceChild(oldDOM.firstElementChild, this.wrapperDOM) | ||
} else { | ||
// Remove the className | ||
this.options.classes.table?.split(" ").forEach(className => this.wrapperDOM.classList.remove(className)) | ||
if (this.wrapperDOM) { | ||
if (this.wrapperDOM.parentElement) { | ||
// Restore the initial HTML | ||
const oldDOM = createElement("div") | ||
oldDOM.innerHTML = this._initialHTML | ||
this.wrapperDOM.parentElement.replaceChild(oldDOM.firstElementChild, this.wrapperDOM) | ||
} else { | ||
// Remove the className | ||
this.options.classes.table?.split(" ").forEach(className => this.wrapperDOM.classList.remove(className)) | ||
} | ||
} | ||
@@ -689,0 +691,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
3144249
0.01%12581
0.02%