Skip to content
This repository was archived by the owner on Jul 13, 2024. It is now read-only.

Commit 769b6bf

Browse files
authored
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
1 parent cf35bf8 commit 769b6bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gitgraph.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@
390390
author: commit.author,
391391
message: commit.message,
392392
date: commit.date,
393-
sha1: commit.sha1
393+
sha1: commit.sha1,
394+
commit: commit
394395
};
395396

396397
_emitEvent(self.canvas, "commit:" + event, mouseEventOptions);

0 commit comments

Comments
 (0)