diff --git a/frontend-js/src/main/js/gui/AbstractGuiElement.js b/frontend-js/src/main/js/gui/AbstractGuiElement.js index 95a72bfd8f964fe589c8d764a06b0d91fbbf89b8..b859caede9c7adb19bd2abff6323d3f55b38429f 100644 --- a/frontend-js/src/main/js/gui/AbstractGuiElement.js +++ b/frontend-js/src/main/js/gui/AbstractGuiElement.js @@ -12,7 +12,7 @@ var logger = require('../logger'); * * @param {Object} params * @param {HTMLElement} params.element - * @param {CustomMap} params.customMap + * @param {CustomMap} [params.customMap] * @param {Configuration} params.configuration * @param {Project} [params.project] * @param {ServerConnector} [params.serverConnector] @@ -44,9 +44,6 @@ AbstractGuiElement.prototype.constructor = AbstractGuiElement; * @param {CustomMap} map */ AbstractGuiElement.prototype.setMap = function (map) { - if (map === undefined) { - throw new Error("map must be defined"); - } this._map = map; };