From e824de927db69c59ffdd2bd7c88151c28a63395f Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Mon, 16 Oct 2017 17:44:54 +0200
Subject: [PATCH] style issues

---
 frontend-js/src/main/js/map/AbstractCustomMap.js       | 10 +++++-----
 frontend-js/src/main/js/map/data/Chemical.js           |  6 +++---
 frontend-js/src/main/js/map/surface/ReactionSurface.js |  4 ++--
 frontend-js/src/test/js/map/data/GeneVariant-test.js   |  2 +-
 4 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/frontend-js/src/main/js/map/AbstractCustomMap.js b/frontend-js/src/main/js/map/AbstractCustomMap.js
index f843a3db3e..c70194c0b8 100644
--- a/frontend-js/src/main/js/map/AbstractCustomMap.js
+++ b/frontend-js/src/main/js/map/AbstractCustomMap.js
@@ -179,8 +179,8 @@ AbstractCustomMap.prototype.getMouseLatLng = function () {
 
   var self = this;
   // center point visible on the map
-  var coord = self.getGoogleMap().getCenter();
-  var point = self.fromLatLngToPoint(coord);
+  var latLngCoordinates = self.getGoogleMap().getCenter();
+  var point = self.fromLatLngToPoint(latLngCoordinates);
 
   // this is magic :)
   // find offset of the div where google map is located related to top left
@@ -210,10 +210,10 @@ AbstractCustomMap.prototype.getMouseLatLng = function () {
 
   // now we have offset in x,y and center point on the map in x,y, so we have
   // final position in x,y
-  var newCoord = new google.maps.Point(point.x + pointDist.x, point.y + pointDist.y);
+  var newCoordinates = new google.maps.Point(point.x + pointDist.x, point.y + pointDist.y);
 
   // change it to lat,lng
-  var latLngResult = self.fromPointToLatLng(newCoord);
+  var latLngResult = self.fromPointToLatLng(newCoordinates);
 
   return latLngResult;
 };
@@ -409,7 +409,7 @@ AbstractCustomMap.prototype.turnOnDrawing = function () {
     drawingControl: true,
     drawingControlOptions: {
       position: google.maps.ControlPosition.TOP_CENTER,
-      drawingModes: [google.maps.drawing.OverlayType.POLYGON,]
+      drawingModes: [google.maps.drawing.OverlayType.POLYGON]
     },
     markerOptions: {
       icon: 'images/beachflag.png'
diff --git a/frontend-js/src/main/js/map/data/Chemical.js b/frontend-js/src/main/js/map/data/Chemical.js
index 51ce30b53c..22609e10ce 100644
--- a/frontend-js/src/main/js/map/data/Chemical.js
+++ b/frontend-js/src/main/js/map/data/Chemical.js
@@ -26,10 +26,10 @@ Chemical.prototype.getDirectEvidence = function() {
   return this._directEvidence;
 };
 
-Chemical.prototype.setDirectEvidenceReferences = function(directeEvidenceReferences) {
+Chemical.prototype.setDirectEvidenceReferences = function(directEvidenceReferences) {
   this._directEvidenceReferences = [];
-  for (var i = 0; i < directeEvidenceReferences.length; i++) {
-    this._directEvidenceReferences.push(new Annotation(directeEvidenceReferences[i]));
+  for (var i = 0; i < directEvidenceReferences.length; i++) {
+    this._directEvidenceReferences.push(new Annotation(directEvidenceReferences[i]));
   }
 };
 
diff --git a/frontend-js/src/main/js/map/surface/ReactionSurface.js b/frontend-js/src/main/js/map/surface/ReactionSurface.js
index a722520568..de28af972e 100644
--- a/frontend-js/src/main/js/map/surface/ReactionSurface.js
+++ b/frontend-js/src/main/js/map/surface/ReactionSurface.js
@@ -140,12 +140,12 @@ ReactionSurface.prototype.getWidth = function() {
  * he should investigate the reaction manually.
  * 
  * @param startX
- *          see {AliasSurface} class for detailes, in this implementation the
+ *          see {AliasSurface} class for details, in this implementation the
  *          only important information is that when there are more than one
  *          layout visualized at least one of the two parameters (startX,endX)
  *          will differ from {0.0, 1.0} values
  * @param endX
- *          see {AliasSurface} class for detailes, in this implementation the
+ *          see {AliasSurface} class for details, in this implementation the
  *          only important information is that when there are more than one
  *          layout visualized at least one of the two parameters (startX,endX)
  *          will differ from {0.0, 1.0} values
diff --git a/frontend-js/src/test/js/map/data/GeneVariant-test.js b/frontend-js/src/test/js/map/data/GeneVariant-test.js
index de7f1fa518..cca93dae87 100644
--- a/frontend-js/src/test/js/map/data/GeneVariant-test.js
+++ b/frontend-js/src/test/js/map/data/GeneVariant-test.js
@@ -13,7 +13,7 @@ describe('GeneVariant', function() {
       referenceGenomeVersion : "v1",
       contig : "1",
       allelFrequency : "0.2",
-      variantIdentifier : "id",
+      variantIdentifier : "id"
     };
     var variant = new GeneVariant(data);
     assert.equal(variant.getPosition(), data.position);
-- 
GitLab