mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-14 08:34:26 +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,3 +1,5 @@
|
|||
var Main = require('./main');
|
||||
|
||||
var randomHueString = function() {
|
||||
var hue = Math.random();
|
||||
var str = 'hsb(' + String(hue) + ',0.7,1)';
|
||||
|
@ -717,7 +719,7 @@ var VisNode = VisBase.extend({
|
|||
var commandStr = 'git show ' + this.get('commit').get('id');
|
||||
_.each([this.get('circle'), this.get('text')], function(rObj) {
|
||||
rObj.click(function() {
|
||||
events.trigger('processCommandFromEvent', commandStr);
|
||||
Main.getEvents().trigger('processCommandFromEvent', commandStr);
|
||||
});
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue