From 81f8bd811c67b8c23cf94916a130a33824174ad0 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Thu, 19 Sep 2013 15:06:08 -0500 Subject: [PATCH] Angular and non-angular NavController working --- hacking/NavAngular.unit.js | 0 hacking/TabBarController.unit.js | 9 +++++- hacking/TabsAngular.unit.js | 0 hacking/nav.html | 51 +++++++++++++++++--------------- 4 files changed, 35 insertions(+), 25 deletions(-) create mode 100644 hacking/NavAngular.unit.js create mode 100644 hacking/TabsAngular.unit.js diff --git a/hacking/NavAngular.unit.js b/hacking/NavAngular.unit.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/hacking/TabBarController.unit.js b/hacking/TabBarController.unit.js index e844344019..296a44ab54 100644 --- a/hacking/TabBarController.unit.js +++ b/hacking/TabBarController.unit.js @@ -4,11 +4,18 @@ describe('TabBarController', function() { beforeEach(function() { var tabEl = $('
'); ctrl = new TabBarController({ - tabBar: new TabBar({ el: tabEl.get(0) }) + tabBar: new TabBar({ + el: tabEl.get(0), + itemAdded: function(item) { + }, + itemRemoved: function(item) { + } + }) }); }) it('Should add Controllers', function() { + debugger; ctrl.addController({ title: 'Item 1', icon: 'icon-home', diff --git a/hacking/TabsAngular.unit.js b/hacking/TabsAngular.unit.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/hacking/nav.html b/hacking/nav.html index a3dd32736d..2825c5a656 100644 --- a/hacking/nav.html +++ b/hacking/nav.html @@ -27,26 +27,38 @@