Commit 28706d7e authored by Piotr Gawron's avatar Piotr Gawron
Browse files

lint issues

parent 91cd4333
......@@ -174,7 +174,7 @@ Functions.overlayToColor = function(elementOverlay) {
ratio = elementOverlay.value;
color = ServerConnector.getMaxOverlayColorInt();
}
ratio = 1 - ratio
ratio = 1 - ratio;
var MAX_RED = 0xFF0000;
var MAX_GREEN = 0x00FF00;
var MAX_BLUE = 0x0000FF;
......@@ -195,7 +195,7 @@ Functions.overlayToColor = function(elementOverlay) {
blue = parseInt(blue);
blue = blue & MAX_BLUE;
var color = red | green | blue;
color = red | green | blue;
return this.intToColorString(color);
} else {
throw new Error("elementOverlay doesn't have neither color nor value set!");
......
......@@ -82,13 +82,6 @@ ServerConnector.getMaxOverlayColorInt = function() {
return color;
};
ServerConnector.createSubmodelDialog = function(submodelId) {
_createSubmodelDialog([ {
name : 'submodelId',
value : submodelId
} ]);
};
ServerConnector.readFile = function(url) {
return new Promise(function(resolve, reject) {
request.get(url, function(error, response, body) {
......
......@@ -4,7 +4,6 @@
var Panel = require('./Panel');
var GuiConnector = require('../GuiConnector');
var logger = require('../logger');
function SubmapPanel(params) {
......
......@@ -412,12 +412,6 @@ CustomMap.prototype.createMapMenu = function() {
this.divBelt.appendChild(rightHeaderMenu);
var submapDialogsDiv = document.createElement('div');
submapDialogsDiv.id = ControlType.SUBMAP_DIALOGS;
this.addControl(submapDialogsDiv);
this.divBelt.appendChild(submapDialogsDiv);
};
CustomMap.prototype.registerSource = function(overlayCollection) {
......@@ -531,9 +525,6 @@ CustomMap.prototype.refreshOverlayMarkers = function(overlay) {
};
CustomMap.prototype.getSubmapDialogDiv = function(id) {
var dialogs = this.getControl(ControlType.SUBMAP_DIALOGS);
var dialogDiv = this._dialogs[id];
if (dialogDiv === undefined) {
......
......@@ -110,7 +110,6 @@ describe('minerva global', function() {
var layout = helper.createLayout();
layout.setInputDataAvailable(false);
var layoutName = layout.getName();
var layoutId = layout.getId();
project.getModel().addLayout(layout);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment