mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-14 16:55:42 +00:00
Remove Debug statements
This commit is contained in:
parent
18c96fce4b
commit
6bc5e5f7b1
@ -6,7 +6,6 @@ class CorpusList extends RessourceList {
|
||||
}
|
||||
|
||||
init(corpora) {
|
||||
console.log('CorpusList.init called');
|
||||
this.corpora = corpora;
|
||||
super.init(corpora);
|
||||
}
|
||||
|
@ -24,18 +24,6 @@ class User {
|
||||
corpus: {
|
||||
addEventListener(listener, corpusId='*') {
|
||||
if (corpusId in this) {this[corpusId].push(listener);} else {this[corpusId] = [listener];}
|
||||
if (this.data !== undefined) {
|
||||
console.log('User data is already initialized');
|
||||
if (corpusId === '*') {
|
||||
console.log('*');
|
||||
listener(this.data.corpora);
|
||||
} else if (corpusId in this.data.corpora) {
|
||||
console.log(corpusId);
|
||||
listener(this.data.corpora[corpusId]);
|
||||
}
|
||||
} else {
|
||||
console.log('User data is not initialized');
|
||||
}
|
||||
}
|
||||
},
|
||||
job: {
|
||||
@ -52,7 +40,6 @@ class User {
|
||||
}
|
||||
|
||||
init(data) {
|
||||
console.log('User.init called');
|
||||
this.data = data;
|
||||
|
||||
for (let [corpusId, eventListeners] of Object.entries(this.eventListeners.corpus)) {
|
||||
|
Loading…
Reference in New Issue
Block a user