gmaps4rails 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -310,12 +310,10 @@ var Gmaps4Rails = {
310
310
 
311
311
  // clear markers
312
312
  clear_markers: function(){
313
- if (this.marker_objects.size() > 0) {
314
- for (i in this.marker_objects) {
315
- this.marker_objects[i].setMap(null);
316
- }
317
- this.marker_objects = new Array;
318
- }
313
+ for (var i = 0; i < this.marker_objects.length; ++i) {
314
+ this.marker_objects[i].setMap(null);
315
+ }
316
+ this.marker_objects = new Array;
319
317
  },
320
318
 
321
319
  // replace old markers with new markers on an existing map
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmaps4rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 2
10
- version: 0.7.2
9
+ - 3
10
+ version: 0.7.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Benjamin Roth