Action bar safety checks

This commit is contained in:
vakrilov
2016-02-25 14:19:01 +02:00
parent dcd389e0de
commit 25c8bfbb33

View File

@ -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();
}
}