mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
shuffling
This commit is contained in:
parent
51ab487003
commit
f0e45deb1e
3 changed files with 2 additions and 2 deletions
43
src/main.js
Normal file
43
src/main.js
Normal file
|
@ -0,0 +1,43 @@
|
|||
/**
|
||||
* 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();
|
||||
});
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue