mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-14 16:44:26 +02:00
43 lines
922 B
JavaScript
43 lines
922 B
JavaScript
/**
|
|
* Globals
|
|
*/
|
|
var events = _.clone(Backbone.Events);
|
|
|
|
var gitEngine = null;
|
|
var gitVisuals = null;
|
|
|
|
var commandCollection = null;
|
|
var commandBuffer = null;
|
|
|
|
$(document).ready(function(){
|
|
sys = arbor.ParticleSystem(4000, 200, 0.5, false, 55, 0.005, 'verlet');
|
|
sys.renderer = Renderer('#viewport');
|
|
|
|
// the two major collections that affect everything
|
|
var commitCollection = new CommitCollection();
|
|
commandCollection = new CommandCollection();
|
|
|
|
commandBuffer = new CommandBuffer({
|
|
collection: commandCollection
|
|
});
|
|
|
|
new CommandPromptView({
|
|
el: $('#commandLineBar'),
|
|
collection: commandCollection
|
|
});
|
|
new CommandLineHistoryView({
|
|
el: $('#commandLineHistory'),
|
|
collection: commandCollection
|
|
});
|
|
|
|
gitVisuals = new GitVisuals({
|
|
collection: commitCollection
|
|
});
|
|
|
|
gitEngine = new GitEngine({
|
|
collection: commitCollection
|
|
});
|
|
|
|
$('#commandTextField').focus();
|
|
});
|
|
|