Title test working

This commit is contained in:
Max Lynch
2013-09-13 10:14:51 -05:00
parent 830f35dd1c
commit a261e2553a
2 changed files with 26 additions and 17 deletions

View File

@ -17,22 +17,18 @@ TabBarItem.prototype = {
break;
}
// Set the title to the text content of the tab.
this.title = child.innerText.trim();
}
},
setIcon: function(iconClass) {
var child, children = this.el.children;
var hasIcon = false;
for(var i = 0, j = children.length; i < j; i++) {
child = children[i];
}
// Set the title to the text content of the tab.
this.title = this.el.innerText.trim();
},
getIcon: function() {
return this.icon;
},
getTitle: function() {
return this.title;
},
setSelected: function(isSelected) {