Skip to content

Commit

Permalink
Changing how the loaded class is added to new svg element so as to no…
Browse files Browse the repository at this point in the history
…t propagate wrong classes on duplicates
  • Loading branch information
cbaxter713 committed May 17, 2017
1 parent 2129f80 commit 570af1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/inline-svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@

var $svg = $(ajax.responseText);

$svg.attr('class', classNames + ' loaded');
$imgInstances.replaceWith($svg);
$imgInstances.replaceWith($svg).addClass('loaded');

}
else {
Expand Down

0 comments on commit 570af1c

Please sign in to comment.