Fixed tests and removed DOM call from TabBarController

This commit is contained in:
Max Lynch
2013-09-16 11:26:54 -05:00
parent 6c32a638ad
commit 61125473de
4 changed files with 8 additions and 5 deletions

View File

@ -148,6 +148,9 @@ TabBar.prototype = {
}
},
// Try to select a given item. This triggers an event such
// that the view controller managing this tab bar can decide
// whether to select the item or cancel it.
trySelectItem: function(item) {
for(var i = 0, j = this.items.length; i < j; i += 1) {
if(this.items[i] == item) {