From 75605c54b9ae385e5dce75b112d8c3e55d108787 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Fri, 26 Jan 2018 16:02:08 +0100 Subject: [PATCH] mesh data is stored in "_"prefixed params --- frontend-js/src/main/js/map/data/Mesh.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/frontend-js/src/main/js/map/data/Mesh.js b/frontend-js/src/main/js/map/data/Mesh.js index 612111fec6..500ef3a9a1 100644 --- a/frontend-js/src/main/js/map/data/Mesh.js +++ b/frontend-js/src/main/js/map/data/Mesh.js @@ -9,29 +9,28 @@ function Mesh(jsonObject) { } Mesh.prototype.setSynonyms = function (synonyms) { - this.synonyms = synonyms; + this._synonyms = synonyms; }; Mesh.prototype.getSynonyms = function () { - return this.synonyms; + return this._synonyms; }; Mesh.prototype.setName = function (name) { - this.name = name; + this._name = name; }; Mesh.prototype.getName = function () { - return this.name; + return this._name; }; Mesh.prototype.setId = function (id) { - this.id = id; + this._id = id; }; Mesh.prototype.getId = function () { - return this.id; + return this._id; }; Mesh.prototype.setDescription = function (description) { - this.description = description; + this._description = description; }; Mesh.prototype.getDescription = function () { - return this.description; + return this._description; }; - module.exports = Mesh; -- GitLab