Clean up tag handle

This commit is contained in:
Dennis Eichhorn 2016-03-25 15:35:49 +01:00
parent a68c76d3de
commit 6aed622a57

View File

@ -41,15 +41,16 @@
this.tabManager.bind();
this.tableManager.bind();
} else {
var tag = document.getElementById(id);
let tag = document.getElementById(id);
if (tag.tagName === 'form') {
switch(tag.tagName) {
case 'form':
this.formManager.bind(id);
} else if (tag.tagName === 'table') {
break;
case 'table':
this.tableManager.bind(id);
} else if (tag.tagName === 'div') {
// Todo: be more specific in order to handle tab
}
break;
};
}
};