mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 14:19:17 +08:00
Textcontent tweak
This commit is contained in:
2
dist/js/ionic.js
vendored
2
dist/js/ionic.js
vendored
@ -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);
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user