mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-10 06:34:26 +02:00
collection no longer global
This commit is contained in:
parent
94db9a3c7d
commit
4994015bab
3 changed files with 11 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
function GitVisuals() {
|
||||
this.collection = commitCollection;
|
||||
function GitVisuals(options) {
|
||||
this.collection = options.collection;
|
||||
|
||||
this.collection.on('change', _.bind(this.collectionChanged, this));
|
||||
events.on('drawGitVisuals', _.bind(this.drawVisuals, this));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue