esvg 4.4.2 → 4.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 790e8163f8fb60ea722fd1411e87eb09867c3805b3edc35db1e0e2bc33b240ea
4
- data.tar.gz: 179e444090e5803f6a5ce5313a2abf5fd5f463188c6ffbabd3b197fc81f547b0
3
+ metadata.gz: 7284570aded091cd4def0968ecd79cd23e416a1413f5125a4aba7054ec7942fd
4
+ data.tar.gz: 2feba6f145d0a09480c315420a6ffb2d327ab57893ab166bd857e51a19d4caec
5
5
  SHA512:
6
- metadata.gz: e62591f803c9f79e1864838d09ecfa1ac09812d9ba8a3eb5ad7cfbe0655b9b1eb8bbc04d9a2285c16618e2d99cf44080ac43a13ebd11823b1ea32c6b26461ee9
7
- data.tar.gz: 3229fecb426ea389a59fa5d565565e69c5fe059cdf9662ecc972b6b1b932d2abfc7eaf6676f7a612584928c015f5f5b40ff4bf5a3f1e4567b0512a7605919869
6
+ metadata.gz: 952db8d5555a887a6f1b94f2703a2999d8eb74931e84dc97cf916f90350eec8f830a3a5d222a6d22a1c13a56023d35b49e8c841201f637a5ec34eeaf9c343ad1
7
+ data.tar.gz: 7cf058895072daa328a45ff0e1ac81dd770ede834b2cfad97256da2da36fe08fa048aa66ee202f9e141f0b2651772cdf47d09b871569a9f65421dbf7568d74f3
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 4.4.3 (2018-12-09)
4
+ - IE 10 compatibility fix: Replaced self-closing `<use>` tag with close tag version.
5
+ - IE 10 compatibility fix: Using `forEach` instead of `for var of` because IE 10 is garbage. ¯\_(ツ)_/¯
6
+
3
7
  ### 4.4.2 (2018-12-07)
4
8
  - Fix: Strips out fill=none, because Firefox doesn't let fill properties override SVGs with fill=none
5
9
 
@@ -210,9 +210,10 @@ module Esvg
210
210
  function svgs(){
211
211
  if ( !names ) {
212
212
  names = {}
213
- for( var symbol of document.querySelectorAll( 'svg[id^=esvg] symbol' ) ) {
213
+ var symbols = Array.prototype.slice.call( document.querySelectorAll( 'svg[id^=esvg] symbol' ) )
214
+ symbols.forEach( function( symbol ) {
214
215
  names[symbol.dataset.name] = symbol
215
- }
216
+ })
216
217
  }
217
218
  return names
218
219
  }
@@ -106,7 +106,7 @@ module Esvg
106
106
 
107
107
  options.delete(:scale)
108
108
 
109
- %Q{<use #{attributes(options)}/>}
109
+ %Q{<use #{attributes(options)}></use>}
110
110
  end
111
111
 
112
112
  def svgo?
@@ -1,3 +1,3 @@
1
1
  module Esvg
2
- VERSION = "4.4.2"
2
+ VERSION = "4.4.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esvg
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.2
4
+ version: 4.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-07 00:00:00.000000000 Z
11
+ date: 2018-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler