summaryrefslogtreecommitdiff
path: root/assets/js/src/LeadCycleTimeChart.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/src/LeadCycleTimeChart.js')
-rw-r--r--assets/js/src/LeadCycleTimeChart.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/assets/js/src/LeadCycleTimeChart.js b/assets/js/src/LeadCycleTimeChart.js
index 501ed892..9ba4a222 100644
--- a/assets/js/src/LeadCycleTimeChart.js
+++ b/assets/js/src/LeadCycleTimeChart.js
@@ -1,7 +1,8 @@
-function LeadCycleTimeChart() {
+function LeadCycleTimeChart(app) {
+ this.app = app;
}
-LeadCycleTimeChart.prototype.execute = function(app) {
+LeadCycleTimeChart.prototype.execute = function() {
var metrics = $("#chart").data("metrics");
var cycle = [$("#chart").data("label-cycle")];
var lead = [$("#chart").data("label-lead")];
@@ -37,7 +38,7 @@ LeadCycleTimeChart.prototype.execute = function(app) {
},
y: {
tick: {
- format: app.formatDuration
+ format: this.app.formatDuration
}
}
}