Commit ad7fa5da authored by marc duez's avatar marc duez

indexedDom.js : using clear() with the main element allow to clear the whole indexedDom

parent ed1c34e4
......@@ -109,9 +109,15 @@ IndexedDom.prototype = {
/* Clear */
clear: function(className){
var div = this.getElement(className);
if (className == "main"){
var tmp = this.getElement(className);
this.div = {
main: {element: tmp}
};
return;
}
div.removeAllChildren();
this.div[className] = { element : this.div.main.element.getElementsByClassName(className)[0]};
var div = this.getElement(className);
this.div[className] = "undefined";
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment