Commit 8cfebeff authored by Michael Auer's avatar Michael Auer
Browse files

clone config object in constructor to avoid references from outside

parent 0581eec4
......@@ -40,7 +40,7 @@ class Ohsome2X extends EventEmitter {
constructor(config: Ohsome2XConfig) {
super(); //EventEmitter
this.config = config;
this.config = Object.assign({}, config);
this.cursor = ('cursor' in this.config.source)? this.config.source.cursor : null;
Supports Markdown
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