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.tabManager.bind();
this.tableManager.bind(); this.tableManager.bind();
} else { } else {
var tag = document.getElementById(id); let tag = document.getElementById(id);
if (tag.tagName === 'form') { switch(tag.tagName) {
this.formManager.bind(id); case 'form':
} else if (tag.tagName === 'table') { this.formManager.bind(id);
this.tableManager.bind(id); break;
} else if (tag.tagName === 'div') { case 'table':
// Todo: be more specific in order to handle tab this.tableManager.bind(id);
} break;
};
} }
}; };