@@ -1,15 +0,0 @@
-
-var EventInstanceChangeset = EventInstanceRepo.extend({
- removals: null,
- constructor: function(removals, adds) {
- EventInstanceRepo.call(this);
- this.removals = removals || [];
- (adds || []).forEach(this.addEventInstance.bind(this));
- }
-});
@@ -1,10 +1,12 @@
-var EventInstanceRepo = Class.extend({
+var EventInstanceChangeset = Class.extend({
+ removals: null,
byDefId: null,
- constructor: function() {
+ constructor: function(removals, adds) {
+ this.removals = removals || [];
this.byDefId = {};
},
@@ -31,7 +31,7 @@ var EventPeriod = Class.extend(EmitterMixin, {
this.requestsByUid = {};
this.eventDefsByUid = {};
this.eventDefsById = {};
- this.instanceRepo = new EventInstanceRepo();
+ this.instanceRepo = new EventInstanceChangeset();