Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(icon): adds check for el before checking its tagName
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Messerle committed Oct 5, 2015
1 parent 71674b0 commit 4326490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/icon/js/iconService.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@
* Define the Icon class
*/
function Icon(el, config) {
if (el.tagName != 'svg') {
if (el && el.tagName != 'svg') {
el = angular.element('<svg xmlns="http://www.w3.org/2000/svg">').append(el)[0];
}

Expand Down

0 comments on commit 4326490

Please sign in to comment.