mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Action bar safety checks
This commit is contained in:
@ -301,14 +301,14 @@ export class ActionBar extends common.ActionBar {
|
||||
|
||||
public _onTitlePropertyChanged() {
|
||||
var topFrame = frame.topmost();
|
||||
if (topFrame && topFrame.currentPage === this.page) {
|
||||
if (this._toolbar && topFrame && topFrame.currentPage === this.page) {
|
||||
this._updateTitleAndTitleView();
|
||||
}
|
||||
}
|
||||
|
||||
public _onIconPropertyChanged() {
|
||||
var topFrame = frame.topmost();
|
||||
if (topFrame && topFrame.currentPage === this.page) {
|
||||
if (this._toolbar && topFrame && topFrame.currentPage === this.page) {
|
||||
this._updateIcon();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user