Skip to content

Commit

Permalink
switch to eslint, update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Oct 26, 2015
1 parent 5eaa880 commit cede898
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
16 changes: 13 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,23 @@
},
"main": "dist/leaflet-heat.js",
"devDependencies": {
"eslint": "^1.7.3",
"eslint-config-mourner": "^1.0.1",
"simpleheat": "~0.2.0",
"uglify-js": "~2.4.15"
"uglify-js": "^2.5.0"
},
"eslintConfig": {
"extends": "mourner",
"globals": {
"L": false,
"simpleheat": false
}
},
"scripts": {
"test": "jshint src",
"prepublish": "uglifyjs node_modules/simpleheat/simpleheat.js src/HeatLayer.js -c -m --comments /Vladimir/ -o dist/leaflet-heat.js"
"test": "eslint src",
"prepublish": "uglifyjs node_modules/simpleheat/simpleheat.js src/HeatLayer.js -c -m -o dist/leaflet-heat.js"
},
"license": "BSD-2-Clause",
"jshintConfig": {
"quotmark": "single",
"globals": {
Expand Down
8 changes: 2 additions & 6 deletions src/HeatLayer.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/*
(c) 2014, Vladimir Agafonkin
Leaflet.heat, a tiny and fast heatmap plugin for Leaflet.
https://github.com/Leaflet/Leaflet.heat
*/
'use strict';

L.HeatLayer = (L.Layer ? L.Layer : L.Class).extend({

Expand Down Expand Up @@ -193,7 +189,7 @@ L.HeatLayer = (L.Layer ? L.Layer : L.Class).extend({
offset = this._map._getCenterOffset(e.center)._multiplyBy(-scale).subtract(this._map._getMapPanePos());

if (L.DomUtil.setTransform) {
L.DomUtil.setTransform(this._canvas, offset, scale);
L.DomUtil.setTransform(this._canvas, offset, scale);

} else {
this._canvas.style[L.DomUtil.TRANSFORM] = L.DomUtil.getTranslateString(offset) + ' scale(' + scale + ')';
Expand Down

0 comments on commit cede898

Please sign in to comment.