mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +08:00
chore(lint): fix lint issues in nav
This commit is contained in:
@ -103,14 +103,12 @@ export class Nav implements PublicNav, NavContainer {
|
||||
}
|
||||
this.init = true;
|
||||
if (!this.useRouter) {
|
||||
console.log('componentDidLoadImpl: ', this.root);
|
||||
componentDidLoadImpl(this);
|
||||
}
|
||||
}
|
||||
|
||||
@Watch('root')
|
||||
updateRootComponent(): any {
|
||||
console.log('updateRootComponent: ', this.root);
|
||||
if (this.init) {
|
||||
return this.setRoot(this.root);
|
||||
}
|
||||
@ -195,11 +193,6 @@ export class Nav implements PublicNav, NavContainer {
|
||||
return getFirstView(this);
|
||||
}
|
||||
|
||||
@Method()
|
||||
resize() {
|
||||
console.log('resize content');
|
||||
}
|
||||
|
||||
@Listen('navInit')
|
||||
navInitialized(event: CustomEvent) {
|
||||
navInitializedImpl(this, event);
|
||||
@ -862,8 +855,7 @@ export function updateNavStacks(enteringView: ViewController, leavingView: ViewC
|
||||
// batch all of lifecycles together
|
||||
if (destroyQueue && destroyQueue.length) {
|
||||
// TODO, figure out how the zone stuff should work in angular
|
||||
for (let i = 0; i < destroyQueue.length; i++) {
|
||||
const view = destroyQueue[i];
|
||||
for (const view of destroyQueue) {
|
||||
view.willLeave(true);
|
||||
view.didLeave();
|
||||
view.willUnload();
|
||||
@ -879,11 +871,7 @@ export function updateNavStacks(enteringView: ViewController, leavingView: ViewC
|
||||
}).then(() => {
|
||||
// set which animation it should use if it wasn't set yet
|
||||
if (ti.requiresTransition && !ti.opts.animation) {
|
||||
if (isDef(ti.removeStart)) {
|
||||
ti.opts.animation = (leavingView || enteringView).getTransitionName(ti.opts.direction);
|
||||
} else {
|
||||
ti.opts.animation = (enteringView || leavingView).getTransitionName(ti.opts.direction);
|
||||
}
|
||||
ti.opts.animation = isDef(ti.removeStart) ? (leavingView || enteringView).getTransitionName(ti.opts.direction) : (enteringView || leavingView).getTransitionName(ti.opts.direction);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user