Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
15 lines
300 B
JavaScript
Executable file
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;
|
|
});
|
|
};
|