Commit 7527520c authored by Téo Vasseur's avatar Téo Vasseur

js : remove view when clicked

needed to ease testing other functions
parent 09627d98
......@@ -10,7 +10,11 @@ function View(id, parentId, classes) {
var node = document.createElement('div');
node.className = "view " + classes;
node.id = id;
node.textContent = id;
node.onclick = function() {
this.parentNode.removeChild(this);
}
this.node = node;
// parent.appendChild(node);
......
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