forked from MapComplete/MapComplete
More refactoring
This commit is contained in:
parent
6890c5189e
commit
c2d477c97a
12 changed files with 91 additions and 73 deletions
|
@ -39,11 +39,10 @@ export class ElementStorage {
|
|||
}
|
||||
|
||||
getEventSourceById(elementId): UIEventSource<any> {
|
||||
if (this._elements.has(elementId)) {
|
||||
return this._elements.get(elementId);
|
||||
if(elementId === undefined){
|
||||
return undefined;
|
||||
}
|
||||
console.error("Can not find eventsource with id ", elementId);
|
||||
return undefined;
|
||||
return this._elements.get(elementId);
|
||||
}
|
||||
|
||||
has(id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue