Adam Shaw пре 8 година
родитељ
комит
e33d86998f
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      src/component/DateComponent.js

+ 5 - 0
src/component/DateComponent.js

@@ -1,6 +1,7 @@
 
 
 var DateComponent = Component.extend({
 var DateComponent = Component.extend({
 
 
+	uid: null,
 	children: null,
 	children: null,
 	isRTL: false, // frequently accessed options
 	isRTL: false, // frequently accessed options
 	nextDayThreshold: null, // "
 	nextDayThreshold: null, // "
@@ -21,6 +22,7 @@ var DateComponent = Component.extend({
 	constructor: function() {
 	constructor: function() {
 		Component.call(this);
 		Component.call(this);
 
 
+		this.uid = DateComponent.guid++;
 		this.children = [];
 		this.children = [];
 
 
 		this.nextDayThreshold = moment.duration(this.opt('nextDayThreshold'));
 		this.nextDayThreshold = moment.duration(this.opt('nextDayThreshold'));
@@ -670,6 +672,9 @@ var DateComponent = Component.extend({
 });
 });
 
 
 
 
+DateComponent.guid = 0; // TODO: better system for this?
+
+
 DateComponent.watch('dateProfileInChildren', [ 'dateProfile' ], function(deps) {
 DateComponent.watch('dateProfileInChildren', [ 'dateProfile' ], function(deps) {
 	this.setDateProfileInChildren(deps.dateProfile);
 	this.setDateProfileInChildren(deps.dateProfile);
 }, function() {
 }, function() {