chore(lint): fix lint issues in nav

This commit is contained in:
Dan Bucholtz
2018-01-10 15:30:58 -06:00
parent e0ab78d3a3
commit f73e7774dc

View File

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