openstamanager/modules/statistiche/js/calendar.js

26 lines
456 B
JavaScript
Raw Normal View History

2019-07-10 17:22:39 +02:00
class Calendar {
constructor(info, id){
this.info = info;
this.id = id;
this.elements = new Array();
}
addElement(object){
this.elements.push(object);
}
update(start, end) {
this.elements.forEach(function (element) {
element.update(start, end);
});
}
remove() {
this.elements.forEach(function (element) {
element.remove();
});
}
}