mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
WOW somehow got it to work with events being a module export
This commit is contained in:
parent
6327566a63
commit
7ef0d19e12
7 changed files with 70 additions and 46 deletions
|
@ -1,5 +1,6 @@
|
|||
var AnimationFactoryModule = require('./animationFactory');
|
||||
var animationFactory = new AnimationFactoryModule.AnimationFactory();
|
||||
var Main = require('./main');
|
||||
|
||||
// backbone or something uses _.uniqueId, so we make our own here
|
||||
var uniqueId = (function() {
|
||||
|
@ -23,7 +24,7 @@ function GitEngine(options) {
|
|||
this.commandOptions = {};
|
||||
this.generalArgs = [];
|
||||
|
||||
events.on('processCommand', _.bind(this.dispatch, this));
|
||||
Main.getEvents().on('processCommand', _.bind(this.dispatch, this));
|
||||
}
|
||||
|
||||
GitEngine.prototype.defaultInit = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue