Angular and non-angular Tabs Working

Tests passing
This commit is contained in:
Max Lynch
2013-09-19 22:28:59 -05:00
parent 31f25b4134
commit 4a8b35326f
3 changed files with 28 additions and 21 deletions

View File

@ -5,7 +5,13 @@ TabBarController = function(options) {
this._bindEvents();
this.controllers = options.controllers || [];
this.controllers = [];
var controllers = options.controllers || [];
for(var i = 0; i < controllers.length; i++) {
this.addController(controllers[i]);
}
// Bind or set our tabWillChange callback
this.controllerWillChange = options.controllerWillChange || function(controller) {};
@ -110,7 +116,7 @@ TabBarController.prototype = {
this.controllers = controllers;
this._clearSelected();
this.selectController(0);
}
},
}
})(this, document, ion = this.ionic || {});