collection no longer global

This commit is contained in:
Peter Cottle 2012-09-16 10:08:14 -07:00
parent 94db9a3c7d
commit 4994015bab
3 changed files with 11 additions and 7 deletions

View file

@ -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));