|
@@ -48,6 +48,7 @@ var ChronoComponent = Model.extend({
|
|
|
// and renders all the non-date-related content inside.
|
|
// and renders all the non-date-related content inside.
|
|
|
setElement: function(el) {
|
|
setElement: function(el) {
|
|
|
this.el = el;
|
|
this.el = el;
|
|
|
|
|
+ this.bindGlobalHandlers();
|
|
|
this.renderSkeleton();
|
|
this.renderSkeleton();
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -57,6 +58,7 @@ var ChronoComponent = Model.extend({
|
|
|
removeElement: function() {
|
|
removeElement: function() {
|
|
|
this.unsetDate();
|
|
this.unsetDate();
|
|
|
this.unrenderSkeleton();
|
|
this.unrenderSkeleton();
|
|
|
|
|
+ this.unbindGlobalHandlers();
|
|
|
|
|
|
|
|
this.el.remove();
|
|
this.el.remove();
|
|
|
// NOTE: don't null-out this.el in case the View was destroyed within an API callback.
|
|
// NOTE: don't null-out this.el in case the View was destroyed within an API callback.
|
|
@@ -65,6 +67,14 @@ var ChronoComponent = Model.extend({
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ bindGlobalHandlers: function() {
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ unbindGlobalHandlers: function() {
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
// Skeleton
|
|
// Skeleton
|
|
|
// -----------------------------------------------------------------------------------------------------------------
|
|
// -----------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|