onlywei / explain-git-with-d3

Use D3 to visualize simple git branching operations.
MIT License
1.71k stars 390 forks source link

basic url hash functionality to make examples linkable #31

Closed SoonDead closed 9 years ago

SoonDead commented 9 years ago

This is an attempt to do #30 .

Functionality is preserved. Back button works as expected.

I had to do an unlucky hack because args.name is modified in every call, so I had to copy the whole argument object before feeding it to open. I did it with Object.create(), which is ES5 standard and solves this with simple prototype inheritance. Every non-crappy browser supports it, but if IE8 support is necessary, I might need to change it.

SoonDead commented 9 years ago

I'm going to fix these issues you mentioned in this pull request.