diff --git a/app/views/components/module-nav/example-set-role-from-data.html b/app/views/components/module-nav/example-set-role-from-data.html index a7fddca830..e5b4cf7a97 100644 --- a/app/views/components/module-nav/example-set-role-from-data.html +++ b/app/views/components/module-nav/example-set-role-from-data.html @@ -154,7 +154,6 @@ icon: 'https://randomuser.me/api/portraits/lego/3.jpg' } ], true); - // navSwitcherAPI.updated({ icon: iconDef }); }); }); diff --git a/src/components/icons/icons.jquery.js b/src/components/icons/icons.jquery.js index cacc836c49..abdd80806c 100644 --- a/src/components/icons/icons.jquery.js +++ b/src/components/icons/icons.jquery.js @@ -31,14 +31,8 @@ $.fn.icon = function (settings) { options = options || $.extend({}, defaults); if (typeof options === 'string') { - let icon = ''; - - if (options && options.indexOf('icon-') === 0) { - icon = options.replace('icon-', ''); - } - options = $.extend({}, defaults, { - icon + icon: options.replace('icon-', '') }); }