1
0
mirror of https://github.com/morris/vanilla-todo.git synced 2025-08-21 21:25:25 +02:00

Refactor for dataset

This commit is contained in:
opethrocks
2020-10-28 14:55:34 -05:00
parent 6aa0cf72f9
commit b868681068
8 changed files with 13 additions and 15 deletions

View File

@@ -107,7 +107,7 @@ VT.AppSortable = function (el, options) {
for (var i = 0, l = el.children.length; i < l; ++i) {
var child = el.children[i];
if (child && child.getAttribute('data-key') === key) {
if (child && child.dataset.key === key) {
el.removeChild(child);
}
}