From 0072ee4a79e7aa05d2cf9d62840549544d23954c Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Fri, 26 Jan 2018 17:55:27 +0100
Subject: [PATCH] lint issues

---
 .../src/main/js/map/surface/AbstractSurfaceElement.js    | 2 +-
 frontend-js/src/main/js/map/surface/AliasSurface.js      | 9 +++++----
 frontend-js/src/main/js/map/surface/ReactionSurface.js   | 8 +++++---
 3 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/frontend-js/src/main/js/map/surface/AbstractSurfaceElement.js b/frontend-js/src/main/js/map/surface/AbstractSurfaceElement.js
index f2410dc165..2428853d07 100644
--- a/frontend-js/src/main/js/map/surface/AbstractSurfaceElement.js
+++ b/frontend-js/src/main/js/map/surface/AbstractSurfaceElement.js
@@ -137,7 +137,7 @@ AbstractOverlayElement.prototype.getBounds = function () {
 /**
  * Returns {@link AbstractCustomMap} where surface is located.
  *
- * @returns {@link AbstractCustomMap} where surface is located
+ * @returns {AbstractCustomMap} where surface is located
  */
 AbstractOverlayElement.prototype.getCustomMap = function () {
   return this._customMap;
diff --git a/frontend-js/src/main/js/map/surface/AliasSurface.js b/frontend-js/src/main/js/map/surface/AliasSurface.js
index fd4bf02db5..f062657fdc 100644
--- a/frontend-js/src/main/js/map/surface/AliasSurface.js
+++ b/frontend-js/src/main/js/map/surface/AliasSurface.js
@@ -2,6 +2,7 @@
 
 /* exported logger */
 
+// noinspection JSUnusedLocalSymbols
 var logger = require('../../logger');
 var functions = require('../../Functions');
 
@@ -31,7 +32,7 @@ AliasSurface.prototype.setColor = function (color) {
   var googleMapObjects = this.getGoogleMapObjects();
   for (var i = 0; i < googleMapObjects.length; i++) {
     googleMapObjects[i].setOptions({
-      strokeColor: color,
+      strokeColor: color
     });
   }
 };
@@ -103,7 +104,7 @@ AliasSurface.create = function (params) {
 
   return functions.overlayToColor(overlayAlias).then(function (color) {
     rectangle.setOptions({
-      fillColor: color,
+      fillColor: color
     });
     var result = new AliasSurface({
       map: map,
@@ -159,14 +160,14 @@ AliasSurface.createFromIdentifiedElement = function (params) {
       fillColor: color,
       strokeColor: strokeColor,
       strokeOpacity: strokeOpacity,
-      strokeWeight: strokeWeight,
+      strokeWeight: strokeWeight
     });
 
     var result = new AliasSurface({
       gmapObj: rectangle,
       map: map,
       onClick: params.onClick,
-      alias: alias,
+      alias: alias
     });
     result.setIdentifiedElement(element);
     return result;
diff --git a/frontend-js/src/main/js/map/surface/ReactionSurface.js b/frontend-js/src/main/js/map/surface/ReactionSurface.js
index 488a5c47bd..58748537d1 100644
--- a/frontend-js/src/main/js/map/surface/ReactionSurface.js
+++ b/frontend-js/src/main/js/map/surface/ReactionSurface.js
@@ -1,5 +1,7 @@
 "use strict";
 
+var Promise = require("bluebird");
+
 /* exported logger */
 
 var functions = require('../../Functions');
@@ -89,7 +91,7 @@ ReactionSurface.prototype.setColor = function (color) {
   var gmapObjects = this.getGoogleMapObjects();
   for (var i = 0; i < gmapObjects.length; i++) {
     gmapObjects[i].setOptions({
-      strokeColor: color,
+      strokeColor: color
     });
   }
   this.customized = true;
@@ -165,7 +167,7 @@ ReactionSurface.prototype.changedToDefault = function () {
   for (var i = 0; i < this.getGoogleMapObjects().length; i++) {
     this.getGoogleMapObjects()[i].setOptions({
       strokeColor: "#0000FF",
-      strokeWeight: 5,
+      strokeWeight: 5
     });
   }
   this.customized = false;
@@ -179,7 +181,7 @@ ReactionSurface.prototype.changedToCustomized = function () {
   for (var i = 0; i < this.getGoogleMapObjects().length; i++) {
     this.getGoogleMapObjects()[i].setOptions({
       strokeColor: this.getColor(),
-      strokeWeight: this.getWidth(),
+      strokeWeight: this.getWidth()
     });
   }
   this.customized = true;
-- 
GitLab