mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(wtf): add web tracing framework to NavController
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import {Directive, ElementRef, Optional, Host, NgFor, NgIf, forwardRef, ViewContainerRef} from 'angular2/angular2';
|
||||
import {wtfLeave, wtfCreateScope} from 'angular2/angular2';
|
||||
|
||||
import {Ion} from '../ion';
|
||||
import {Attr} from '../app/id';
|
||||
@@ -169,8 +170,6 @@ export class Tabs extends Ion {
|
||||
return Promise.reject();
|
||||
}
|
||||
|
||||
console.time('select tab ' + selectedTab.id);
|
||||
|
||||
let deselectedTab = this.getSelected();
|
||||
|
||||
if (selectedTab === deselectedTab) {
|
||||
@@ -178,6 +177,8 @@ export class Tabs extends Ion {
|
||||
return this._touchActive(selectedTab);
|
||||
}
|
||||
|
||||
let wtfScope = wtfCreateScope('Tabs#select()')();
|
||||
|
||||
let opts = {
|
||||
animate: false
|
||||
};
|
||||
@@ -205,8 +206,8 @@ export class Tabs extends Ion {
|
||||
this._onReady();
|
||||
this._onReady = null;
|
||||
}
|
||||
|
||||
console.timeEnd('select tab ' + selectedTab.id);
|
||||
|
||||
wtfLeave(wtfScope);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user