Răsfoiți Sursa

kill minResizeDuration

Adam Shaw 8 ani în urmă
părinte
comite
261b82698a

+ 0 - 2
src/common/Grid.events.js

@@ -825,7 +825,6 @@ Grid.mixin({
 
 
 	// Returns new date-information for an event segment being resized from its start
-	// TODO: what about minResizeDuration?
 	computeEventStartResizeMutation: function(startFootprint, endFootprint, event) {
 		var startDelta = this.diffDates(
 			endFootprint.dateRange.getStart(),
@@ -851,7 +850,6 @@ Grid.mixin({
 
 
 	// Returns new date-information for an event segment being resized from its end
-	// TODO: what about minResizeDuration?
 	computeEventEndResizeMutation: function(startFootprint, endFootprint, event) {
 		var endDelta = this.diffDates(
 			endFootprint.dateRange.getEnd(),

+ 0 - 2
src/common/Grid.js

@@ -18,8 +18,6 @@ var Grid = FC.Grid = ChronoComponent.extend({
 	displayEventTime: null,
 	displayEventEnd: null,
 
-	minResizeDuration: null, // TODO: hack. set by subclasses. minumum event resize duration
-
 	// if defined, holds the unit identified (ex: "year" or "month") that determines the level of granularity
 	// of the date areas. if not defined, assumes to be day and time granularity.
 	// TODO: port isTimeScale into same system?

+ 2 - 2
src/common/TimeGrid.events.js

@@ -137,7 +137,7 @@ TimeGrid.mixin({
 
 
 	renderHighlightSegs: function(segs) {
-		segs = this.renderFillSegEls('highlight', segs); // TODO: old fill system
+		segs = this.renderFillSegEls('highlight', segs); // TODO: instead of calling renderFill directly
 		this.updateSegVerticals(segs);
 		this.attachSegsByCol(this.groupSegsByCol(segs), this.highlightContainerEls);
 		this.highlightSegs = segs;
@@ -154,7 +154,7 @@ TimeGrid.mixin({
 
 
 	renderBusinessSegs: function(segs) {
-		segs = this.renderFillSegEls('businessHours', segs); // TODO: old fill system
+		segs = this.renderFillSegEls('businessHours', segs); // TODO: instead of calling renderFill directly
 		this.updateSegVerticals(segs);
 		this.attachSegsByCol(this.groupSegsByCol(segs), this.businessContainerEls);
 		this.businessSegs = segs;

+ 0 - 2
src/common/TimeGrid.js

@@ -122,8 +122,6 @@ var TimeGrid = FC.TimeGrid = Grid.extend(DayTableMixin, {
 		this.snapDuration = snapDuration;
 		this.snapsPerSlot = slotDuration / snapDuration; // TODO: ensure an integer multiple?
 
-		this.minResizeDuration = snapDuration; // hack
-
 		// might be an array value (for TimelineView).
 		// if so, getting the most granular entry (the last one probably).
 		input = this.opt('slotLabelFormat');