Adam Shaw vor 8 Jahren
Ursprung
Commit
8694f72290
2 geänderte Dateien mit 3 neuen und 4 gelöschten Zeilen
  1. 1 3
      src/common/Grid.js
  2. 2 1
      src/models/SingleEventDefinition.js

+ 1 - 3
src/common/Grid.js

@@ -124,9 +124,7 @@ var Grid = FC.Grid = ChronoComponent.extend({
 	},
 
 
-	// Converts a span (has unzoned start/end and any other grid-specific location information)
-	// into an array of segments (pieces of events whose format is decided by the grid).
-	spanToSegs: function(span) {
+	componentFootprintToSegs: function(componentFootprint) {
 		// subclasses must implement
 	},
 

+ 2 - 1
src/models/SingleEventDefinition.js

@@ -29,7 +29,8 @@ var SingleEventDefinition = EventDefinition.extend({ // TODO: mix-in some of Eve
 
 
 	isAllDay: function() {
-		return !(this.start.hasTime() || this.end.hasTime());
+		// TODO: make more DRY
+		return !(this.start.hasTime() || (this.end && this.end.hasTime()));
 	}
 
 });