Skip to content
Snippets Groups Projects
Commit e824de92 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

style issues

parent a1275e59
No related branches found
No related tags found
2 merge requests!115Resolve "admin panel should use API",!114Resolve "admin panel should use API"
Pipeline #
......@@ -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'
......
......@@ -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]));
}
};
......
......@@ -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
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment