1
0
mirror of https://github.com/morris/vanilla-todo.git synced 2025-08-21 13:21:29 +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

@@ -4,7 +4,7 @@ window.VT = window.VT || {};
VT.AppIcon = function (el) {
if (el.children.length > 0) return;
var id = el.getAttribute('data-id');
var id = el.dataset.id;
var promise = VT.AppIcon.cache[id];
if (!promise) {