mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-11 07:56:16 +01:00
26 lines
456 B
JavaScript
26 lines
456 B
JavaScript
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();
|
|
});
|
|
}
|
|
|
|
}
|