From 769b6bf86e7727dc1c41669d95a5468241d69d49 Mon Sep 17 00:00:00 2001 From: srangos Date: Wed, 19 Dec 2018 08:49:42 -0500 Subject: [PATCH] Add commit object to the mouseEventOptions object This will allow users to work with the full commit object during mouse over and mouse out events --- src/gitgraph.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gitgraph.js b/src/gitgraph.js index 0bd20fbb..8ffe1d86 100644 --- a/src/gitgraph.js +++ b/src/gitgraph.js @@ -390,7 +390,8 @@ author: commit.author, message: commit.message, date: commit.date, - sha1: commit.sha1 + sha1: commit.sha1, + commit: commit }; _emitEvent(self.canvas, "commit:" + event, mouseEventOptions);