kmz_compressor 2.0.17 → 2.0.18

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: 4a016ad49b9311b3f886bef8fc9ddbaf789fdafb
4
- data.tar.gz: b42020c3acdd4a0a483737f4d54f0d2ee656b9fc
3
+ metadata.gz: 94a88fda4fdd0168fccb7355e5ef45af1c25b658
4
+ data.tar.gz: 0092cf0ca88abd9a5c3f02ba2335c0c90537df65
5
5
  SHA512:
6
- metadata.gz: 2feb0c49d00e5dd6e9a240ed63e46dfdca0e9ff48eecc5cb47df58bf7141154e34893eed1149546c09f616da108ce8d0fc80632704d83465baadbe5204084479
7
- data.tar.gz: f479543d56fdfe774562ed292e4ecc0f7614f50c29238c0b8b15f0c9beb2c74a644e27a8f49d0c8d69b117da9a5a842e1d329e99bc852f880b352f42dd5069a0
6
+ metadata.gz: e5299c850090a59fd2aa457676070c1f004432b3b257e6e3925c61c3e884fe9e47399dab4aca200df4451d96c4563f5facf77edcea9ef9dcb608549881812035
7
+ data.tar.gz: b0bb7bbc009520c6e4e479b750c8ccecce1ce82a87af94495ad51ed36a969b1f64d9ac8cd03b556771d26efb92abe5e4a24b76906f93c2a0525efc21c96d889e
@@ -59,7 +59,7 @@ window.MapLayerManager = function(map){
59
59
 
60
60
  var handler = function(){
61
61
  // If we have no layer names
62
- if (!layerNamez || layerNamez.length == 0){
62
+ if (layerNamez.length == 0){
63
63
  layerNamez = layerNames()
64
64
  }
65
65
 
@@ -141,6 +141,7 @@ window.MapLayerManager = function(map){
141
141
 
142
142
  function centerOnLayers(layerNames, options){
143
143
  var bounds;
144
+ options = options || {}
144
145
  layerNames = makeArray(layerNames)
145
146
  sweep() // Discard old layers before we generate the bounds
146
147
 
@@ -269,10 +270,12 @@ window.MapLayerManager = function(map){
269
270
  }
270
271
 
271
272
  function makeArray(value){
272
- if (!$.isArray(value)){
273
- return [value]
274
- } else {
273
+ if (value === undefined){
274
+ return []
275
+ } else if ($.isArray(value)){
275
276
  return value
277
+ } else {
278
+ return [value]
276
279
  }
277
280
  }
278
281
 
@@ -1,3 +1,3 @@
1
1
  module KMZCompressor
2
- VERSION = "2.0.17"
2
+ VERSION = "2.0.18"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kmz_compressor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.17
4
+ version: 2.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Wallace
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-25 00:00:00.000000000 Z
12
+ date: 2014-08-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails