Skip to content

Commit

Permalink
chore: use arrow functions in index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r committed Jan 4, 2023
1 parent 781578c commit fc08a80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,16 @@ <h2 class="heading">Interactive Gantt Chart entirely made in SVG!</h2>
}
]
var gantt_chart = new Gantt(".gantt-target", tasks, {
on_click: function (task) {
on_click: task => {
console.log(task);
},
on_date_change: function(task, start, end) {
on_date_change: (task, start, end) => {
console.log(task, start, end);
},
on_progress_change: function(task, progress) {
on_progress_change: (task, progress) => {
console.log(task, progress);
},
on_view_change: function(mode) {
on_view_change: (mode) => {
console.log(mode);
},
view_mode: 'Month',
Expand Down

0 comments on commit fc08a80

Please sign in to comment.