From 27e3307a8e26cc30689b50733d564fe07d3d9914 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Thu, 27 Jul 2017 14:21:35 +0200 Subject: [PATCH] Fix callback. --- src/operations/balanceChart.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operations/balanceChart.component.ts b/src/operations/balanceChart.component.ts index 8cde252..ed7d2ee 100644 --- a/src/operations/balanceChart.component.ts +++ b/src/operations/balanceChart.component.ts @@ -147,7 +147,7 @@ export class BalanceChartComponent implements OnInit, OnChanges { }, subchart: { show: true, - onbrush: function(domain) { + onbrush: (domain) => { this.onUpdate.emit({minDate: domain[0], maxDate: domain[1]}); } }