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 +4 -4
- data/lib/esvg/js/core.js.erb +3 -3
- 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: e8096efb5cda6f61437ccf4d1ec383c8586bddcc019e2907d24c3bdd31aaffaf
|
4
|
+
data.tar.gz: c4cf2946eb8adedeebcd0e0bf9e5b025a0134c2037a91e602c1061c6162e3346
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9deaacf8b9ded1606d7ebd3f8a338ce14ee772215fe75bcf226fa8a924cb45f54ca85377cf4f28f0d7fd0da51f92a7bfb0a3bc916550bdfc4e8d2068bd09b551
|
7
|
+
data.tar.gz: f2f254d77ae9e4befe0db4389672fbc98bacdfeeca5e82a7efeacdf3a4d592f4ccd071e34c908cdb5b05c2c7cf18e42c83af8ddda233fc0c1daacff3e9c0a232
|
data/lib/esvg/js/core.js.erb
CHANGED
@@ -21,9 +21,9 @@
|
|
21
21
|
var symbol = svgs()[id]
|
22
22
|
|
23
23
|
if ( symbol ) {
|
24
|
-
var parent = symbol.
|
25
|
-
var prefix = parent.
|
26
|
-
var base = parent.
|
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() )
|
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.6.
|
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-
|
11
|
+
date: 2019-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|