Skip to content

Commit 883f124

Browse files
committed
fix shadowed variable
1 parent d4d69dd commit 883f124

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/task-lists-element.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ function initItem(el: HTMLElement) {
9696
if (initialized.get(el)) return
9797
initialized.set(el, true)
9898

99-
const taskList = el.closest('task-lists')
100-
if (!(taskList instanceof TaskListsElement)) return
99+
const currentTaskList = el.closest('task-lists')
100+
if (!(currentTaskList instanceof TaskListsElement)) return
101101

102102
// Single item task lists are not draggable.
103-
if (taskList.querySelectorAll('.task-list-item').length <= 1) return
103+
if (currentTaskList.querySelectorAll('.task-list-item').length <= 1) return
104104

105105
const fragment = handleTemplate.content.cloneNode(true)
106106
const handle = fragment.querySelector('.handle')

0 commit comments

Comments
 (0)