What does `// unused` mean?

This should probably use the more modern [dataset](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.dataset) with fallbacks, like:
`id: parseInt(this.dataset && this.dataset.uid || this.getAttribute('data-uid') || 0, 10),`