Skip to content

Commit d166b1f

Browse files
Martin Abelson SahlenMartin Abelson Sahlen
authored andcommitted
Apply requested changes
1 parent 59c6508 commit d166b1f

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"author": "Jeremiah Hall <npm@jeremiahrhall.com>",
2929
"license": "MIT",
3030
"peerDependencies": {
31-
"leaflet": ">=1.0.0",
32-
"react-leaflet": ">=1.0.0",
33-
"react": ">=15.4.1",
34-
"react-dom": ">=15.4.1"
31+
"leaflet": "^1.0.0",
32+
"react-leaflet": "^1.0.0",
33+
"react": "^15.4.1",
34+
"react-dom": "^15.4.1"
3535
},
3636
"devDependencies": {
3737
"babel-cli": "^6.6.5",
@@ -51,11 +51,11 @@
5151
"eslint-plugin-arrow-function": "^2.0.0",
5252
"eslint-plugin-react": "^4.2.3",
5353
"jest-cli": "^0.9.2",
54-
"leaflet": "^0.7.7",
55-
"react": "^0.14.7",
54+
"leaflet": "^1.0.0",
55+
"react": "^15.4.1",
5656
"react-addons-test-utils": "^0.14.7",
57-
"react-dom": "^0.14.7",
58-
"react-leaflet": "^0.10.2",
57+
"react-dom": "^15.4.1",
58+
"react-leaflet": "^1.0.0",
5959
"react-transform-hmr": "^1.0.4",
6060
"webpack-dev-server": "^1.14.1",
6161
"webpack": "^1.12.14"

src/HeatmapLayer.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function isValid(num: number): boolean {
6666
}
6767

6868
function safeRemoveLayer (map, el) {
69-
const {overlayPane} = map.getPanes()
69+
const {overlayPane} = map.getPanes();
7070
if (overlayPane.contains(el)) {
7171
overlayPane.removeChild(el);
7272
}
@@ -99,7 +99,6 @@ export default class HeatmapLayer extends MapLayer {
9999
}
100100

101101
componentDidMount(): void {
102-
103102
const canAnimate = this.context.map.options.zoomAnimation && L.Browser.any3d;
104103
const zoomClass = `leaflet-zoom-${canAnimate ? 'animated' : 'hide'}`;
105104
const mapSize = this.context.map.getSize();
@@ -132,7 +131,7 @@ export default class HeatmapLayer extends MapLayer {
132131
return this;
133132
},
134133
onRemove: function(map) {
135-
safeRemoveLayer(map, el)
134+
safeRemoveLayer(map, el);
136135
}
137136
});
138137

0 commit comments

Comments
 (0)