VulpesOS/gaia/apps/verticalhome/test/marionette/lib/icon_id.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

15 lines
300 B
JavaScript
Executable file

/* global module */
'use strict';
/**
Return the id of a particular icon.
@param {Marionette.Element} element of particular icon.
@return {String} id for the icon.
*/
module.exports = function iconId(element) {
return element.scriptWith(function(el) {
return el.dataset.identifier;
});
};