Action bar safety checks

This commit is contained in:
vakrilov
2016-03-09 13:23:07 +02:00
parent dcd389e0de
commit 25c8bfbb33
+2 -2
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();
}
}