mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 07:58:34 +02:00
Trying to be able to test in node GAHHHH
This commit is contained in:
parent
c9fb851ad6
commit
aadeab8299
14 changed files with 4186 additions and 69 deletions
|
@ -1,3 +1,8 @@
|
|||
if (!require('../util').isBrowser()) {
|
||||
var _ = require('underscore');
|
||||
var Backbone = require('backbone');
|
||||
}
|
||||
|
||||
var GitEngine = require('../git').GitEngine;
|
||||
var AnimationFactory = require('../visuals/animation/animationFactory').AnimationFactory;
|
||||
var GitVisuals = require('../visuals').GitVisuals;
|
||||
|
@ -25,7 +30,8 @@ HeadlessGit.prototype.init = function() {
|
|||
collection: this.commitCollection,
|
||||
branches: this.branchCollection,
|
||||
gitVisuals: gitVisuals,
|
||||
animationFactory: animationFactory
|
||||
animationFactory: animationFactory,
|
||||
events: _.clone(Backbone.Events)
|
||||
});
|
||||
this.gitEngine.init();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue