mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
Namespacing for controllers and views
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
(function(ionic) {
|
||||
|
||||
TabBarController = function(options) {
|
||||
ionic.controllers = ionic.controllers || {};
|
||||
|
||||
ionic.controllers.TabBarController = function(options) {
|
||||
this.tabBar = options.tabBar;
|
||||
|
||||
this._bindEvents();
|
||||
@ -20,7 +22,7 @@ TabBarController = function(options) {
|
||||
this.setSelectedController(0);
|
||||
};
|
||||
|
||||
TabBarController.prototype = {
|
||||
ionic.controllers.TabBarController.prototype = {
|
||||
// Start listening for events on our tab bar
|
||||
_bindEvents: function() {
|
||||
var _this = this;
|
||||
|
||||
Reference in New Issue
Block a user