Skip to content
Permalink
Browse files

fix shadowed variable

  • Loading branch information...
koddsson committed Jun 26, 2019
1 parent d4d69dd commit 883f1246a136481950cb64a64c529ca00d716074
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/task-lists-element.js
@@ -96,11 +96,11 @@ function initItem(el: HTMLElement) {
if (initialized.get(el)) return
initialized.set(el, true)

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

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

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

0 comments on commit 883f124

Please sign in to comment.
You can’t perform that action at this time.