gmapsjs-rails 0.4.11 → 0.4.12

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: eed170925fa488d359eab5983f20eba4a6ff2861
4
- data.tar.gz: 14ebe8ca74f7e192bcf4f501718b662adf24ffdd
3
+ metadata.gz: a3872ce22e8fc092a57b099922ac601e63781a59
4
+ data.tar.gz: 1bedba047490eb29c91eedc6b7e490f728383ef0
5
5
  SHA512:
6
- metadata.gz: 160745b7de03f6834bc81d488bfdbef58652c451bff43dfea8fc5d7a381b1601fb80cbea42b839472730866d730f79333328f76b2b4837d582cb2f5254607273
7
- data.tar.gz: e40117b87980ba3ad18c87aa35240b9abd853c3feb7cd44746d0aa999a42afb47f5605c6351c3486790cfb7b45972425bfb998e72da29c1783c05c288f010b10
6
+ metadata.gz: 5b7494f3229b6a4e8c9b668c91dddf3411e31224ac045cd521944a27a61671d1b412ece7a0c8a23f9f3f7375c336cd0f9537d8186e380ebba8c3a996143ba280
7
+ data.tar.gz: 4be2f0b365805a1312617cc079202943296c35168081799269939515b199ae05b1c0ee6ba966107f332950ecf07c3fe33a4970627db5bba88cddcd44215e7be4
data/README.md CHANGED
@@ -3,7 +3,8 @@
3
3
  gmaps.js allows you to use the potential of Google Maps in a simple way.
4
4
  No more extensive documentation or large amount of code.
5
5
 
6
- gmapsjs-rails bundles gmaps.js in a easy to use Rails Engine compatible with the Asset Pipeline
6
+ gmapsjs-rails bundles gmaps.js in a easy to use Rails Engine compatible with the Asset Pipeline.
7
+ Its version is supposed to reflect the gmaps.js release versions.
7
8
 
8
9
  ## Installation
9
10
 
@@ -11,7 +11,7 @@
11
11
  }(this, function() {
12
12
 
13
13
  /*!
14
- * GMaps.js v0.4.11
14
+ * GMaps.js v0.4.12
15
15
  * http://hpneo.github.com/gmaps/
16
16
  *
17
17
  * Copyright 2014, Gustavo Leon
@@ -768,6 +768,12 @@ GMaps.prototype.drawOverlay = function(options) {
768
768
  })(el, stop_overlay_events[ev]);
769
769
  }
770
770
 
771
+ if (options.click) {
772
+ google.maps.event.addDomListener(overlay.el, 'click', function() {
773
+ options.click.apply(overlay, [overlay]);
774
+ });
775
+ }
776
+
771
777
  google.maps.event.trigger(this, 'ready');
772
778
  };
773
779
 
@@ -43,6 +43,12 @@ GMaps.prototype.drawOverlay = function(options) {
43
43
  })(el, stop_overlay_events[ev]);
44
44
  }
45
45
 
46
+ if (options.click) {
47
+ google.maps.event.addDomListener(overlay.el, 'click', function() {
48
+ options.click.apply(overlay, [overlay]);
49
+ });
50
+ }
51
+
46
52
  google.maps.event.trigger(this, 'ready');
47
53
  };
48
54
 
@@ -1,5 +1,5 @@
1
1
  module GmapsJS
2
2
  module Rails
3
- VERSION = "0.4.11"
3
+ VERSION = "0.4.12"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmapsjs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.11
4
+ version: 0.4.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Lluch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-19 00:00:00.000000000 Z
11
+ date: 2014-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties