mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +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