|
|
@@ -28,8 +28,7 @@ var DateComponent = FC.DateComponent = Component.extend({
|
|
|
constructor: function() {
|
|
|
Component.call(this);
|
|
|
|
|
|
- this.defineDisplayingEvents();
|
|
|
- this.defineEventDataSourceInChildren();
|
|
|
+ this.defineLateWatchers();
|
|
|
|
|
|
this.uid = String(DateComponent.guid++);
|
|
|
this.childrenByUid = {};
|
|
|
@@ -55,6 +54,12 @@ var DateComponent = FC.DateComponent = Component.extend({
|
|
|
},
|
|
|
|
|
|
|
|
|
+ defineLateWatchers: function() {
|
|
|
+ this.defineDisplayingEvents();
|
|
|
+ this.defineEventDataSourceInChildren();
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
addChild: function(child) {
|
|
|
if (!this.childrenByUid[child.uid]) {
|
|
|
this.childrenByUid[child.uid] = child;
|