Changed TabBar controller to use setVisible

This makes it a little more generic and we can easily override this in
an Angular controller.
This commit is contained in:
Max Lynch
2013-09-17 17:03:32 -05:00
parent b4e42a42f7
commit 8c26932c7b
2 changed files with 20 additions and 17 deletions

View File

@ -59,11 +59,13 @@ TabBarController.prototype = {
for(var i = 0, j = this.controllers.length; i < j; i ++) {
c = this.controllers[i];
c.detach && c.detach();
//c.detach && c.detach();
c.setVisible(false);
}
c = this.controllers[index];
c.attach && c.attach();
//c.attach && c.attach();
c.setVisible(true);
},
_clearSelected: function() {