function Time(app) { this.app = app; Responder.call(this); TimeObserver.call(this); this._timeCache = Object.create(null); /** cache of all loaded events */ this._eventsCache = Object.create(null); this._timespans = []; this._collection = new IntervalTree(); this._collection.createIndex('eventId'); this.busytime = app.store('Busytime'); this.calendarStore = app.store('Calendar'); }
_setupCache: function() { // reset time observers TimeObserver.call(this); this._byEventId = Object.create(null); },