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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94022733b5b1b8ff522fcd0c3ac93f37acfc91f7
4
- data.tar.gz: 43874c5327983fa8d84c53aedc78dbc53669dd6c
3
+ metadata.gz: ffcdbe8ce8225cbd64f413b9c751eb6bc7ebac9d
4
+ data.tar.gz: 28b86ddd6089af733612f1efafcb682793c75115
5
5
  SHA512:
6
- metadata.gz: 5bfd0718123299977f3fe0ed00ee1c80deb278ef981ec5c3a0eb8dcbc42760e7d4b045927bc5fd53896829cb118c9190066359a29e77b4caead8b695d2b9c6b5
7
- data.tar.gz: ea6348ffcefc875da7e45a6023ca400cc1bff150dc53ec9df848a460c232d73b27add1b3065e7511a20236f77d07a9495e2eadcf02cf7e1eeb93fba104387fa5
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
@@ -1,3 +1,3 @@
1
1
  module Esvg
2
- VERSION = "2.2.4"
2
+ VERSION = "2.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esvg
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.4
4
+ version: 2.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis