Angular controller inheriting from our vanilla ctrl

This commit is contained in:
Max Lynch
2013-09-17 19:25:39 -05:00
parent 8c26932c7b
commit a93618d876
2 changed files with 21 additions and 5 deletions

View File

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