Browse Source

EventFootprint::toLegacy -> toEventLegacy

Adam Shaw 8 years ago
parent
commit
84d56356b2
3 changed files with 3 additions and 3 deletions
  1. 1 1
      src/Calendar.constraints.js
  2. 1 1
      src/common/Grid.events.js
  3. 1 1
      src/models/event/EventFootprint.js

+ 1 - 1
src/Calendar.constraints.js

@@ -32,7 +32,7 @@ Calendar.prototype.isEventInstanceGroupAllowed = function(eventInstanceGroup) {
 			if (
 			if (
 				eventAllowFunc(
 				eventAllowFunc(
 					eventFootprints[i].componentFootprint.toLegacy(this),
 					eventFootprints[i].componentFootprint.toLegacy(this),
-					eventFootprints[i].toLegacy()
+					eventFootprints[i].getEventLegacy()
 				) === false
 				) === false
 			) {
 			) {
 				return false;
 				return false;

+ 1 - 1
src/common/Grid.events.js

@@ -1129,7 +1129,7 @@ Grid.mixin({
 				seg.isEnd = false;
 				seg.isEnd = false;
 			}
 			}
 
 
-			seg.event = eventFootprint.toLegacy();
+			seg.event = eventFootprint.getEventLegacy();
 			seg.footprint = eventFootprint;
 			seg.footprint = eventFootprint;
 			seg.footprintStartMs = unzonedRange.startMs;
 			seg.footprintStartMs = unzonedRange.startMs;
 			seg.footprintDurationMs = unzonedRange.endMs - unzonedRange.startMs;
 			seg.footprintDurationMs = unzonedRange.endMs - unzonedRange.startMs;

+ 1 - 1
src/models/event/EventFootprint.js

@@ -16,7 +16,7 @@ var EventFootprint = FC.EventFootprint = Class.extend({
 	},
 	},
 
 
 
 
-	toLegacy: function() {
+	getEventLegacy: function() {
 		return (this.eventInstance || this.eventDef).toLegacy();
 		return (this.eventInstance || this.eventDef).toLegacy();
 	}
 	}