Updating tests, fixing some old toggle and tab stuff

This commit is contained in:
Max Lynch
2013-10-29 12:04:44 -05:00
parent 4efd10765c
commit 599dd732d4
9 changed files with 4570 additions and 699 deletions

View File

@ -92,11 +92,16 @@ ionic.controllers.TabBarController.prototype = {
return this.controllers;
},
// Get the currently selected tab
// Get the currently selected controller
getSelectedController: function() {
return this.selectedController;
},
// Get the index of the currently selected controller
getSelectedControllerIndex: function() {
return this.selectedIndex;
},
// Add a tab
addController: function(controller) {
this.controllers.push(controller);