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

check for undefined udded for bioentity type

parent 6cd272f1
No related branches found
No related tags found
1 merge request!45Resolve "Clicking on map element"
......@@ -92,6 +92,9 @@ BioEntity.prototype.getDescription = function() {
};
BioEntity.prototype.setType = function(type) {
if (type === undefined) {
throw new Error("type cannot be undefined");
}
this._type = type;
};
......@@ -125,5 +128,4 @@ BioEntity.prototype.setReferences = function(references) {
this.references = references;
};
module.exports = BioEntity;
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