Simon Hunt
Committed by Gerrit Code Review

GUI : Icon Service -- added registerIconMapping() call.

Change-Id: I8a4d94b19240385140e2f0e115fbaa9fb24ec5c5
......@@ -222,6 +222,13 @@
};
}
function registerIconMapping(iconId, glyphId) {
if (glyphMapping[iconId]) {
$log.warn('Icon with id', iconId, 'already mapped. Ignoring.');
} else {
glyphMapping[iconId] = glyphId;
}
}
// =========================
// === DEFINE THE MODULE
......@@ -256,7 +263,8 @@
addDeviceIcon: addDeviceIcon,
addHostIcon: addHostIcon,
iconConfig: function () { return config; },
sortIcons: sortIcons
sortIcons: sortIcons,
registerIconMapping: registerIconMapping
};
}]);
......