Textcontent tweak

This commit is contained in:
Max Lynch
2013-11-18 22:13:10 -06:00
parent d8bce833cd
commit 470db1d632
2 changed files with 2 additions and 2 deletions

2
dist/js/ionic.js vendored
View File

@ -4044,7 +4044,7 @@ ionic.views.TabBarItem = ionic.views.View.inherit({
} }
// Set the title to the text content of the tab. // Set the title to the text content of the tab.
this.title = this.el.innerText.trim(); this.title = this.el.textContent.trim();
this._tapHandler = function(e) { this._tapHandler = function(e) {
_this.onTap && _this.onTap(e); _this.onTap && _this.onTap(e);

View File

@ -40,7 +40,7 @@ ionic.views.TabBarItem = ionic.views.View.inherit({
} }
// Set the title to the text content of the tab. // Set the title to the text content of the tab.
this.title = this.el.innerText.trim(); this.title = this.el.textContent.trim();
this._tapHandler = function(e) { this._tapHandler = function(e) {
_this.onTap && _this.onTap(e); _this.onTap && _this.onTap(e);