From 22cfc82d356cb4346ad4bb22bae1154cc5a394f7 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Wed, 7 Jul 2021 08:13:27 -0400 Subject: [PATCH] remove unnecessary bindings --- src/components/range/range.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/range/range.ts b/src/components/range/range.ts index 53d58fba9..995bb1dae 100644 --- a/src/components/range/range.ts +++ b/src/components/range/range.ts @@ -80,7 +80,7 @@ export default class SlRange extends LitElement { connectedCallback() { super.connectedCallback(); - this.handleSlotChange = this.handleSlotChange.bind(this); + this.handleSlotChange = this.handleSlotChange; this.resizeObserver = new ResizeObserver(() => this.syncTooltip()); this.shadowRoot!.addEventListener('slotchange', this.handleSlotChange); @@ -193,7 +193,7 @@ export default class SlRange extends LitElement { 'range--tooltip-top': this.tooltip === 'top', 'range--tooltip-bottom': this.tooltip === 'bottom' })} - @touchstart=${this.handleTouchStart.bind(this)} + @touchstart=${this.handleTouchStart} > ${this.tooltip !== 'none' ? html` ${this.tooltipFormatter(this.value)} `