angular-leaflet-rails 0.1.0.2 → 0.1.0.3

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: 4c1b6b33c352fc16a7c7f8f6278c898c29cc4cc2
4
- data.tar.gz: 5eff4ee16ee676380fe528316c0fd3a2b8c6fdbd
3
+ metadata.gz: 2dbd98dbdb5bd6d2f60c447e83171a961fbcaaa0
4
+ data.tar.gz: 48d8a8dea0ca7ce2fd8ac50615c9082724417cc4
5
5
  SHA512:
6
- metadata.gz: 568215391c96ca4ff49c7a0329e884aba0d2f6d8bc45d993ffaf4143a4cca2d4f366bd023eff52b8aa9a122ae63e646398db7157de76ee6e23ad065dff7fe88a
7
- data.tar.gz: 6e59640ef3ec914b45455b2e0995b45fcd9d062c688f3e3faa18a7bea590784241360aea837883407b801b848d01e4c37ed6e86c9c7050ca9c4dd7f55846fe44
6
+ metadata.gz: 0cb868ebfb1000e9ad8a117c3ef571f01d642a2891d8cbc7db202892913762cfee4c1c8907249c723e091d2f4b15a003de063e3913a2e19d08ffe51ea40be3fe
7
+ data.tar.gz: 0dcc291e9ff174086bb3096df6a4866b7aa9717cb4e2e541d74335b4000064852aaacd27344aa033d02050a64741bdff58b4ea00998b136a31e4c6979d7c06c6
@@ -1,5 +1,5 @@
1
1
  module AngularLeaflet
2
2
  module Rails
3
- VERSION = "0.1.0.2"
3
+ VERSION = "0.1.0.3"
4
4
  end
5
5
  end
@@ -58,7 +58,9 @@ leafletDirective.directive("leaflet", ["$http", "$log", function ($http, $log) {
58
58
  });
59
59
 
60
60
  scope.$watch("center", function (center, oldValue) {
61
- map.setView([center.lat, center.lng], center.zoom);
61
+ if(center.lat && center.lng && center.zoom){
62
+ map.setView([center.lat, center.lng], center.zoom);
63
+ }
62
64
  }, true);
63
65
  }
64
66
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: angular-leaflet-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.2
4
+ version: 0.1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tymon Tobolski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-14 00:00:00.000000000 Z
11
+ date: 2013-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: angular-rails