esvg 2.2.4 → 2.2.5
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 -1
- data/lib/esvg/svg.rb +2 -2
- data/lib/esvg/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffcdbe8ce8225cbd64f413b9c751eb6bc7ebac9d
|
4
|
+
data.tar.gz: 28b86ddd6089af733612f1efafcb682793c75115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e139f4210dd45a26bca37a0547ee10e249636bfd00dcc7d1eb573852f7c7e1dc1e903147eb6737ac5c1b491d33cafde0ea541a79d243c18809c2ab1e48116b9
|
7
|
+
data.tar.gz: ce200dc8ac31246b88cd5bc1a225b2f089da38ab624f715c1fb607db88512555a50e46e8b0c97917d01934c4949505aaa9888bfbe847ffa23022da4f78e78ee6
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### 2.2.5 (2015-10-02)
|
4
|
+
- Fix: Javascript binding issue.
|
5
|
+
|
3
6
|
### 2.2.4 (2015-10-02)
|
4
|
-
- Fix: Esvg load function happens inside of the module now
|
7
|
+
- Fix: Esvg load function happens inside of the module now.
|
5
8
|
|
6
9
|
### 2.2.3 (2015-10-02)
|
7
10
|
- Fix: Dasherize input when embedding icons from the ruby helper.
|
data/lib/esvg/svg.rb
CHANGED
@@ -217,10 +217,10 @@ module Esvg
|
|
217
217
|
if (document.readyState == 'interactive') { this.embed() }
|
218
218
|
|
219
219
|
// Handle Turbolinks (or other things that fire page change events)
|
220
|
-
document.addEventListener("page:change", function(event) { this.embed() })
|
220
|
+
document.addEventListener("page:change", function(event) { this.embed() }.bind(this))
|
221
221
|
|
222
222
|
// Handle standard DOM ready events
|
223
|
-
document.addEventListener("DOMContentLoaded", function(event) { this.embed() })
|
223
|
+
document.addEventListener("DOMContentLoaded", function(event) { this.embed() }.bind(this))
|
224
224
|
}
|
225
225
|
}
|
226
226
|
|
data/lib/esvg/version.rb
CHANGED