From e1a4204f845ee0a00d4baea34aa70cc9fcf9a5f6 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 23 Sep 2013 00:10:33 -0500 Subject: [PATCH] TabBar code fix --- js/views/tabBar.js | 6 +++--- test/tab-bars.html | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/js/views/tabBar.js b/js/views/tabBar.js index 5d4fb35e28..2fc8ed68eb 100644 --- a/js/views/tabBar.js +++ b/js/views/tabBar.js @@ -21,7 +21,7 @@ ionic.ui.TabBarItem.prototype = { } item.appendChild(document.createTextNode(itemData.title)); - return new TabBarItem(item); + return new ionic.ui.TabBarItem(item); }, @@ -93,7 +93,7 @@ ionic.ui.TabBar.prototype = { // Add an item to the tab bar addItem: function(item) { // Create a new TabItem - var tabItem = TabBarItem.prototype.create(item); + var tabItem = ionic.ui.TabBarItem.prototype.create(item); this.appendItemElement(tabItem); @@ -180,7 +180,7 @@ ionic.ui.TabBar.prototype = { var item, items = Array.prototype.slice.call(this.el.children); for(var i = 0, j = items.length; i < j; i += 1) { - item = new TabBarItem(items[i]); + item = new ionic.ui.TabBarItem(items[i]); this.items[i] = item; this._bindEventsOnItem(item); } diff --git a/test/tab-bars.html b/test/tab-bars.html index e9640050cb..76c2512d69 100644 --- a/test/tab-bars.html +++ b/test/tab-bars.html @@ -136,12 +136,13 @@ +