mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 17:00:04 +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,4 +1,8 @@
|
|||
var Main = require('../app');
|
||||
if (!require('../util').isBrowser()) {
|
||||
var _ = require('underscore');
|
||||
var Backbone = require('backbone');
|
||||
}
|
||||
|
||||
var GRAPHICS = require('../util/constants').GRAPHICS;
|
||||
|
||||
var randomHueString = function() {
|
||||
|
@ -712,6 +716,7 @@ var VisNode = VisBase.extend({
|
|||
|
||||
attachClickHandlers: function() {
|
||||
var commandStr = 'git show ' + this.get('commit').get('id');
|
||||
var Main = require('../app');
|
||||
_.each([this.get('circle'), this.get('text')], function(rObj) {
|
||||
rObj.click(function() {
|
||||
Main.getEvents().trigger('processCommandFromEvent', commandStr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue