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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/esvg/svgs.rb +3 -2
- data/lib/esvg/symbol.rb +1 -1
- data/lib/esvg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7284570aded091cd4def0968ecd79cd23e416a1413f5125a4aba7054ec7942fd
|
4
|
+
data.tar.gz: 2feba6f145d0a09480c315420a6ffb2d327ab57893ab166bd857e51a19d4caec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 952db8d5555a887a6f1b94f2703a2999d8eb74931e84dc97cf916f90350eec8f830a3a5d222a6d22a1c13a56023d35b49e8c841201f637a5ec34eeaf9c343ad1
|
7
|
+
data.tar.gz: 7cf058895072daa328a45ff0e1ac81dd770ede834b2cfad97256da2da36fe08fa048aa66ee202f9e141f0b2651772cdf47d09b871569a9f65421dbf7568d74f3
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/lib/esvg/svgs.rb
CHANGED
@@ -210,9 +210,10 @@ module Esvg
|
|
210
210
|
function svgs(){
|
211
211
|
if ( !names ) {
|
212
212
|
names = {}
|
213
|
-
|
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
|
}
|
data/lib/esvg/symbol.rb
CHANGED
data/lib/esvg/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|