From a971448bcec762097a0b3e35f51990ab016c560e Mon Sep 17 00:00:00 2001 From: Ed Coyle Date: Wed, 9 Aug 2023 19:56:23 -0400 Subject: [PATCH] Revert icon util cchange --- .../components/module-nav/example-set-role-from-data.html | 1 - src/components/icons/icons.jquery.js | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) 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-', '') }); }