chore(): update to ionic-rules/strict

This commit is contained in:
Manu Mtz.-Almeida
2018-07-29 23:10:26 +02:00
parent 7292fc7d38
commit c1b61d0fee
148 changed files with 353 additions and 406 deletions

View File

@ -1,4 +1,5 @@
import { Component, Element, Event, EventEmitter, Method, Prop, State, Watch } from '@stencil/core';
import { Mode } from '../../interface';
import { createThemedClasses } from '../../utils/theme';
@ -13,7 +14,6 @@ const QUERY: { [key: string]: string } = {
'never': ''
};
@Component({
tag: 'ion-split-pane',
styleUrls: {
@ -68,8 +68,10 @@ export class SplitPane {
}
componentDidUnload() {
this.rmL && this.rmL();
this.rmL = null;
if (this.rmL) {
this.rmL();
this.rmL = undefined;
}
}
@Watch('when')
@ -77,8 +79,10 @@ export class SplitPane {
if (this.isServer) {
return;
}
this.rmL && this.rmL();
this.rmL = null;
if (this.rmL) {
this.rmL();
this.rmL = undefined;
}
// Check if the split-pane is disabled
if (this.disabled) {
@ -164,7 +168,6 @@ export class SplitPane {
}
function setPaneClass(el: HTMLElement, isMain: boolean) {
let toAdd;
let toRemove;