Skip to content

Commit

Permalink
Revert icon util cchange
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardCoyle committed Aug 11, 2023
1 parent a9915a6 commit a971448
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@
icon: 'https://randomuser.me/api/portraits/lego/3.jpg'
}
], true);
// navSwitcherAPI.updated({ icon: iconDef });
});
});
</script>
8 changes: 1 addition & 7 deletions src/components/icons/icons.jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -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-', '')
});
}

Expand Down

0 comments on commit a971448

Please sign in to comment.