Skip to content

Commit 8c34a81

Browse files
committed
Remove unused method variable
1 parent a2e020e commit 8c34a81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class DetailsMenuElement extends HTMLElement {
3434
const subscriptions = [
3535
fromEvent(details, 'compositionstart', e => trackComposition(this, e)),
3636
fromEvent(details, 'compositionend', e => trackComposition(this, e)),
37-
fromEvent(details, 'click', e => shouldCommit(details, this, e)),
38-
fromEvent(details, 'change', e => shouldCommit(details, this, e)),
37+
fromEvent(details, 'click', e => shouldCommit(details, e)),
38+
fromEvent(details, 'change', e => shouldCommit(details, e)),
3939
fromEvent(details, 'keydown', e => keydown(details, this, e)),
4040
fromEvent(details, 'toggle', () => loadFragment(details, this), {once: true}),
4141
fromEvent(details, 'toggle', () => closeCurrentMenu(details)),
@@ -161,7 +161,7 @@ function sibling(details: Element, next: boolean): HTMLElement | null {
161161

162162
const ctrlBindings = navigator.userAgent.match(/Macintosh/)
163163

164-
function shouldCommit(details: Element, menu: DetailsMenuElement, event: Event) {
164+
function shouldCommit(details: Element, event: Event) {
165165
const target = event.target
166166
if (!(target instanceof Element)) return
167167

0 commit comments

Comments
 (0)