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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user