ソースを参照

DateComponent::requestRender

Adam Shaw 8 年 前
コミット
bbf7bcd7bc
2 ファイル変更9 行追加9 行削除
  1. 0 9
      src/View.js
  2. 9 0
      src/component/DateComponent.js

+ 0 - 9
src/View.js

@@ -114,15 +114,6 @@ var View = FC.View = InteractiveDateComponent.extend({
 	},
 
 
-	requestRender: function(namespace, type, method, args) {
-		var _this = this;
-
-		this.renderQueue.queue(namespace, type, function() {
-			method.apply(_this, args);
-		});
-	},
-
-
 	// Retrieves an option with the given name
 	opt: function(name) {
 		return this.options[name];

+ 9 - 0
src/component/DateComponent.js

@@ -51,6 +51,15 @@ var DateComponent = Component.extend({
 	},
 
 
+	requestRender: function(namespace, type, method, args) {
+		var _this = this;
+
+		this._getView().renderQueue.queue(this.uid + ':' + namespace, type, function() {
+			method.apply(_this, args);
+		});
+	},
+
+
 	// Options
 	// -----------------------------------------------------------------------------------------------------------------