Skip to content

Commit

Permalink
rc5
Browse files Browse the repository at this point in the history
fix tests for IE9-11
  • Loading branch information
dasboe committed Aug 7, 2018
1 parent d324415 commit 7c2a9d7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/svg-inject.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* SVGInject - Version 1.0.0-rc.4
* SVGInject - Version 1.0.0-rc.5
* A tiny, intuitive, robust, caching solution for injecting SVG files inline into the DOM.
*
* https://github.com/iconfu/svg-inject
Expand Down
2 changes: 1 addition & 1 deletion examples/svg-inject.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* SVGInject - Version 1.0.0-rc.3
* SVGInject - Version 1.0.0-rc.5
* A tiny, intuitive, robust, caching solution for injecting SVG files inline into the DOM.
*
* https://github.com/iconfu/svg-inject
Expand Down
2 changes: 1 addition & 1 deletion src/svg-inject.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* SVGInject - Version 1.0.0-rc.3
* SVGInject - Version 1.0.0-rc.5
* A tiny, intuitive, robust, caching solution for injecting SVG files inline into the DOM.
*
* https://github.com/iconfu/svg-inject
Expand Down
2 changes: 1 addition & 1 deletion test/js/svg-inject.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* SVGInject - Version 1.0.0-rc.3
* SVGInject - Version 1.0.0-rc.5
* A tiny, intuitive, robust, caching solution for injecting SVG files inline into the DOM.
*
* https://github.com/iconfu/svg-inject
Expand Down
3 changes: 2 additions & 1 deletion test/js/test_basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ runTests([

SVGInject9.setOptions({
afterInject: function(img, svg) {
svg.classList.remove('prevent-image-flash');
// do not use className for SVGs!
svg.setAttribute('class', 'inject-success');

if (++count == 2) {
success();
Expand Down

0 comments on commit 7c2a9d7

Please sign in to comment.