فهرست منبع

move getNowIndicatorUnit

Adam Shaw 8 سال پیش
والد
کامیت
863a56b342
3فایلهای تغییر یافته به همراه7 افزوده شده و 16 حذف شده
  1. 7 0
      src/common/ChronoComponent.js
  2. 0 9
      src/common/Grid.js
  3. 0 7
      src/common/View.js

+ 7 - 0
src/common/ChronoComponent.js

@@ -110,6 +110,13 @@ var ChronoComponent = Model.extend({
 	// -----------------------------------------------------------------------------------------------------------------
 
 
+	// Returns a string unit, like 'second' or 'minute' that defined how often the current time indicator
+	// should be refreshed. If something falsy is returned, no time indicator is rendered at all.
+	getNowIndicatorUnit: function() {
+		// subclasses should implement
+	},
+
+
 	// Renders a current time indicator at the given datetime
 	renderNowIndicator: function(date) {
 		// subclasses should implement

+ 0 - 9
src/common/Grid.js

@@ -553,15 +553,6 @@ var Grid = FC.Grid = ChronoComponent.extend({
 	},
 
 
-	/* Now Indicator
-	------------------------------------------------------------------------------------------------------------------*/
-
-
-	// TODO: move this to ChronoComponent
-	getNowIndicatorUnit: function() {
-	},
-
-
 	/* Fill System (highlight, background events, business hours)
 	--------------------------------------------------------------------------------------------------------------------
 	TODO: remove this system. like we did in TimeGrid

+ 0 - 7
src/common/View.js

@@ -490,13 +490,6 @@ var View = FC.View = ChronoComponent.extend({
 	},
 
 
-	// Returns a string unit, like 'second' or 'minute' that defined how often the current time indicator
-	// should be refreshed. If something falsy is returned, no time indicator is rendered at all.
-	getNowIndicatorUnit: function() {
-		// subclasses should implement
-	},
-
-
 	/* Dimensions
 	------------------------------------------------------------------------------------------------------------------*/
 	// TODO: move some of these to ChronoComponent