esvg 4.6.10 → 4.6.11

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: d944947f0859524af0c623e606dc808fe3d390cc0c9101a3fe7da375229393e6
4
- data.tar.gz: bd0661ac58f848934c00ededcb67c94d81aa33f1ca49b9add787133bf6f41a8f
3
+ metadata.gz: e8096efb5cda6f61437ccf4d1ec383c8586bddcc019e2907d24c3bdd31aaffaf
4
+ data.tar.gz: c4cf2946eb8adedeebcd0e0bf9e5b025a0134c2037a91e602c1061c6162e3346
5
5
  SHA512:
6
- metadata.gz: b1146f47c505cfda84ec5a9464fd85666d5383d99427e2e712ede225c6921a08385771f55c759e439416408803cf21ad6b1f2b9bed6212b78e89fec0716e4a71
7
- data.tar.gz: '094433a94bf61dea86dac8315f0ec00d8ca49aa35f6be003f7a74e1b4f0da4e1b3f314d5c7f6e16b5935c9fe057f392861d3b1ac39fb852ee780b38f48f1f936'
6
+ metadata.gz: 9deaacf8b9ded1606d7ebd3f8a338ce14ee772215fe75bcf226fa8a924cb45f54ca85377cf4f28f0d7fd0da51f92a7bfb0a3bc916550bdfc4e8d2068bd09b551
7
+ data.tar.gz: f2f254d77ae9e4befe0db4389672fbc98bacdfeeca5e82a7efeacdf3a4d592f4ccd071e34c908cdb5b05c2c7cf18e42c83af8ddda233fc0c1daacff3e9c0a232
@@ -21,9 +21,9 @@
21
21
  var symbol = svgs()[id]
22
22
 
23
23
  if ( symbol ) {
24
- var parent = symbol.parentElement
25
- var prefix = parent.dataset.prefix
26
- var base = parent.dataset.symbolClass
24
+ var parent = symbol.parentNode
25
+ var prefix = parent.getAttribute('data-prefix')
26
+ var base = parent.getAttribute('data-symbol-class')
27
27
 
28
28
  var svg = document.createRange().createContextualFragment( '<svg><use xlink:href="#' + prefix + '-' + id + '"/></svg>' ).firstChild;
29
29
  svg.setAttribute( 'class', base + ' ' + prefix + '-' + id + ' ' + ( options.class || '' ).trim() )
@@ -1,3 +1,3 @@
1
1
  module Esvg
2
- VERSION = "4.6.10"
2
+ VERSION = "4.6.11"
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.6.10
4
+ version: 4.6.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-28 00:00:00.000000000 Z
11
+ date: 2019-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler