Fixed tests and removed DOM call from TabBarController

This commit is contained in:
Max Lynch
2013-09-16 11:26:54 -05:00
parent 6c32a638ad
commit 61125473de
4 changed files with 8 additions and 5 deletions

View File

@ -59,11 +59,11 @@ TabBarController.prototype = {
for(var i = 0, j = this.controllers.length; i < j; i ++) {
c = this.controllers[i];
c.el.style.display = 'none';
c.detach && c.detach();
}
c = this.controllers[index];
c.el.style.display = 'block';
c.attach && c.attach();
},
_clearSelected: function() {