diff --git a/frontend-js/src/main/js/map/AbstractCustomMap.js b/frontend-js/src/main/js/map/AbstractCustomMap.js index f843a3db3e0cc59ad981603df4eda2881ad72afc..c70194c0b84e2905dd6308a38c1c78eb21697b2c 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 51ce30b53c2de83f295e4f7b633d5db61cd4ea12..22609e10ce51a0e197f07143beb40cbadd84d6bb 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 a722520568dbea0cc18d4f01dba8c09ea273bff3..de28af972e8ff53628b7301cfbb98c14cf903edc 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 de7f1fa5182b0600c3822f66a8ff9b471e4ba3c6..cca93dae87e34d3d14a3ef9412340a176816e95c 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);