File tree Expand file tree Collapse file tree
tns-core-modules/ui/action-bar Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import common = require( "./action-bar-common" ) ;
2- import frame = require( "ui/frame" ) ;
32import types = require( "utils/types" ) ;
43import enums = require( "ui/enums" ) ;
54import application = require( "application" ) ;
@@ -50,7 +49,7 @@ export class ActionItem extends common.ActionItem {
5049 private _itemId ;
5150 constructor ( ) {
5251 super ( ) ;
53- this . _itemId = generateItemId ( ) ;
52+ this . _itemId = generateItemId ( ) ;
5453 }
5554
5655 public get android ( ) : dts . AndroidActionItemSettings {
@@ -171,7 +170,7 @@ export class ActionBar extends common.ActionBar {
171170 this . navigationButton . _raiseTap ( ) ;
172171 return true ;
173172 }
174-
173+
175174 // Find item with the right ID;
176175 var menuItem : dts . ActionItem = undefined ;
177176 var items = this . actionItems . getItems ( ) ;
@@ -301,15 +300,13 @@ export class ActionBar extends common.ActionBar {
301300 }
302301
303302 public _onTitlePropertyChanged ( ) {
304- var topFrame = frame . topmost ( ) ;
305- if ( this . _toolbar && topFrame && topFrame . currentPage === this . page ) {
303+ if ( this . _toolbar ) {
306304 this . _updateTitleAndTitleView ( ) ;
307305 }
308306 }
309307
310308 public _onIconPropertyChanged ( ) {
311- var topFrame = frame . topmost ( ) ;
312- if ( this . _toolbar && topFrame && topFrame . currentPage === this . page ) {
309+ if ( this . _toolbar ) {
313310 this . _updateIcon ( ) ;
314311 }
315312 }
You can’t perform that action at this time.
0 commit comments