From 3e7e5e156a581c72baad3c19c43be9a861c66b20 Mon Sep 17 00:00:00 2001 From: mhartington Date: Tue, 19 Dec 2017 17:00:01 -0500 Subject: [PATCH] style(): fix linting --- packages/core/src/components/tabbar/tabbar.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/core/src/components/tabbar/tabbar.tsx b/packages/core/src/components/tabbar/tabbar.tsx index 68743ad001..f1db747ba8 100644 --- a/packages/core/src/components/tabbar/tabbar.tsx +++ b/packages/core/src/components/tabbar/tabbar.tsx @@ -1,6 +1,6 @@ import {Component, Element, Listen, Prop, PropDidChange, State} from '@stencil/core'; import {createThemedClasses} from '../../utils/theme'; -import {DomController} from "../../index"; +import {DomController} from '../../index'; @Component({ tag: 'ion-tabbar', @@ -22,7 +22,7 @@ export class Tabbar { @Prop({ context: 'dom' }) dom: DomController; @Prop() placement = 'bottom'; @Prop() selectedTab: HTMLIonTabElement; - @Prop() scrollable:Boolean; + @Prop() scrollable: Boolean; @Prop() tabs: HTMLIonTabElement[]; private scrollEl: HTMLIonScrollElement; @@ -58,7 +58,7 @@ export class Tabbar { @Listen('ionTabButtonDidUnload') onTabButtonLoad() { this.scrollable && this.updateBoundaries(); - this.highlight && this.updateHighlight() + this.highlight && this.updateHighlight(); } protected analyzeTabs() { @@ -131,12 +131,12 @@ export class Tabbar { this.scrollByTab('right')} fill='clear' class={{inactive: !this.canScrollRight}}> - ] + ]; } else { return [ ...tabButtons, ionTabbarHighlight - ] + ]; } } @@ -182,14 +182,14 @@ export class Tabbar { } updateBoundaries() { - this.canScrollLeft = this.scrollEl.scrollLeft != 0; + this.canScrollLeft = this.scrollEl.scrollLeft !== 0; this.canScrollRight = this.scrollEl.scrollLeft < (this.scrollEl.scrollWidth - this.scrollEl.offsetWidth); } updateHighlight() { this.dom.read(() => { const btn = this.getSelectedButton(), - ionTabbarHighlight:HTMLElement = this.highlight && this.el.querySelector('div.tabbar-highlight') as HTMLElement; + ionTabbarHighlight: HTMLElement = this.highlight && this.el.querySelector('div.tabbar-highlight') as HTMLElement; if (btn && ionTabbarHighlight) { ionTabbarHighlight.style.transform = `translate3d(${btn.offsetLeft}px,0,0) scaleX(${btn.offsetWidth})`;