remove unnecessary bindings

This commit is contained in:
Cory LaViska
2021-07-07 08:13:07 -04:00
parent 9a89c14e20
commit 83fbe9eccc
4 changed files with 8 additions and 8 deletions

View File

@@ -186,7 +186,7 @@ export default class SlAlert extends LitElement {
aria-live="assertive"
aria-atomic="true"
aria-hidden=${this.open ? 'false' : 'true'}
@mousemove=${this.handleMouseMove.bind(this)}
@mousemove=${this.handleMouseMove}
>
<span part="icon" class="alert__icon">
<slot name="icon"></slot>
@@ -203,7 +203,7 @@ export default class SlAlert extends LitElement {
exportparts="base:close-button"
name="x"
library="system"
@click=${this.handleCloseClick.bind(this)}
@click=${this.handleCloseClick}
></sl-icon-button>
</span>
`

View File

@@ -219,7 +219,7 @@ export default class SlRating extends LitElement {
'rating__symbol--hover': this.isHovering && Math.ceil(displayValue) === index + 1
})}
role="presentation"
@mouseenter=${this.handleMouseEnter.bind(this)}
@mouseenter=${this.handleMouseEnter}
>
${unsafeHTML(this.getSymbol(index + 1))}
</span>

View File

@@ -333,10 +333,10 @@ export default class SlTextarea extends LitElement {
hasHelpTextSlot: this.hasHelpTextSlot
})
)}
@change=${this.handleChange.bind(this)}
@input=${this.handleInput.bind(this)}
@focus=${this.handleFocus.bind(this)}
@blur=${this.handleBlur.bind(this)}
@change=${this.handleChange}
@input=${this.handleInput}
@focus=${this.handleFocus}
@blur=${this.handleBlur}
></textarea>
</div>
`

View File

@@ -311,7 +311,7 @@ export default class SlTooltip extends LitElement {
render() {
return html`
<slot @slotchange=${this.handleSlotChange.bind(this)}></slot>
<slot @slotchange=${this.handleSlotChange}></slot>
<div class="tooltip-positioner">
<div