瀏覽代碼

better auto opt function

Adam Shaw 8 年之前
父節點
當前提交
a4589a1a6c
共有 3 個文件被更改,包括 1 次插入11 次删除
  1. 0 5
      src/agenda/TimeGrid.js
  2. 0 5
      src/basic/DayGrid.js
  3. 1 1
      src/component/DateComponent.js

+ 0 - 5
src/agenda/TimeGrid.js

@@ -121,11 +121,6 @@ var TimeGrid = FC.TimeGrid = InteractiveDateComponent.extend(StandardInteraction
 	------------------------------------------------------------------------------------------------------------------*/
 
 
-	opt: function(name) {
-		return this.view.opt(name);
-	},
-
-
 	// Parses various options into properties of this object
 	processOptions: function() {
 		var slotDuration = this.opt('slotDuration');

+ 0 - 5
src/basic/DayGrid.js

@@ -68,11 +68,6 @@ var DayGrid = FC.DayGrid = InteractiveDateComponent.extend(StandardInteractionsM
 	},
 
 
-	opt: function(name) {
-		return this.view.opt(name);
-	},
-
-
 	/* Date Rendering
 	------------------------------------------------------------------------------------------------------------------*/
 

+ 1 - 1
src/component/DateComponent.js

@@ -114,7 +114,7 @@ var DateComponent = FC.DateComponent = Component.extend({
 
 
 	opt: function(name) {
-		// subclasses must implement
+		return this._getView().opt(name); // default implementation
 	},