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