Extracted mode views and controllers into separate features.

This commit is contained in:
Borys Levytskyi
2015-04-03 17:15:51 +03:00
parent fd03747475
commit 97eed3fa1e
11 changed files with 215 additions and 123 deletions

View File

@@ -20,7 +20,11 @@
clear: function (){
this.viewElement.innerHTML = '';
},
insert: function (htmlElement) {
display: function (htmlElement) {
if(typeof htmlElement.tagName == "undefined") {
htmlElement = app.buildViewFor(htmlElement);
}
var vw = this.viewElement;
if(vw.childNodes.length == 0) {
vw.appendChild(htmlElement);