nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit 1736211ba82f1d4117a4bd8a7ad2a2b870f498ae
parent 2316d3fbce391e8ee397cf6f0a686286c1e4531a
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Sun,  5 Jan 2020 20:26:42 +0100

fix lint errors (no-useless-return)

Diffstat:
Msrc/lib/leaflet.control.printPages/decorations.js | 2+-
Msrc/lib/leaflet.hashState/hashState.js | 10----------
2 files changed, 1 insertion(+), 11 deletions(-)

diff --git a/src/lib/leaflet.control.printPages/decorations.js b/src/lib/leaflet.control.printPages/decorations.js @@ -35,7 +35,7 @@ class PrintStaticLayer { } _drawRaster(_unused_canvas, _unused_printOptions) { - return; + throw new Error("Method not implemented"); } } diff --git a/src/lib/leaflet.hashState/hashState.js b/src/lib/leaflet.hashState/hashState.js @@ -47,16 +47,6 @@ const hashState = { this._listeners.push([key, callback]); }, - removeEventListener: function(key, callback) { - this._listeners.forEach(([k, c], i) => { - if (k === key && c === callback) { - this._listeners.splice(i, 1); - return; - } - } - ); - }, - updateState: function(key, values) { if (values) { this._state[key] = values;