mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-09 22:24:26 +02:00
now can do with whatever
This commit is contained in:
parent
ca5b701088
commit
5dc7fc0bed
2 changed files with 3934 additions and 3893 deletions
7792
build/bundle.js
7792
build/bundle.js
File diff suppressed because it is too large
Load diff
35
src/main.js
35
src/main.js
|
@ -1,27 +1,17 @@
|
||||||
var AnimationFactory = require('./animationFactory').AnimationFactory;
|
|
||||||
var CommandCollection = require('./collections').CommandCollection;
|
|
||||||
var CommandBuffer = require('./collections').CommandBuffer;
|
|
||||||
var CommandPromptView = require('./commandViews').CommandPromptView;
|
|
||||||
var CommandLineHistoryView = require('./commandViews').CommandLineHistoryView;
|
|
||||||
var Visualization = require('./visuals').Visualization;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Globals
|
* Globals
|
||||||
*/
|
*/
|
||||||
var events = _.clone(Backbone.Events);
|
var events = _.clone(Backbone.Events);
|
||||||
var ui = null;
|
var ui = null;
|
||||||
var animationFactory = null;
|
var mainVis = null;
|
||||||
|
|
||||||
/**
|
|
||||||
* Static Classes
|
|
||||||
*/
|
|
||||||
animationFactory = new AnimationFactory();
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
var Visuals = require('./visuals');
|
||||||
|
|
||||||
ui = new UI();
|
ui = new UI();
|
||||||
mainVis = new Visualization({
|
mainVis = new Visuals.Visualization({
|
||||||
el: $('#canvasWrapper')[0]
|
el: $('#canvasWrapper')[0]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -33,18 +23,20 @@ $(document).ready(function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
function UI() {
|
function UI() {
|
||||||
// static classes
|
var Collections = require('./collections');
|
||||||
this.commandCollection = new CommandCollection();
|
var CommandViews = require('./commandViews');
|
||||||
|
|
||||||
this.commandBuffer = new CommandBuffer({
|
this.commandCollection = new Collections.CommandCollection();
|
||||||
|
|
||||||
|
this.commandBuffer = new Collections.CommandBuffer({
|
||||||
collection: this.commandCollection
|
collection: this.commandCollection
|
||||||
});
|
});
|
||||||
|
|
||||||
this.commandPromptView = new CommandPromptView({
|
this.commandPromptView = new CommandViews.CommandPromptView({
|
||||||
el: $('#commandLineBar'),
|
el: $('#commandLineBar'),
|
||||||
collection: this.commandCollection
|
collection: this.commandCollection
|
||||||
});
|
});
|
||||||
this.commandLineHistoryView = new CommandLineHistoryView({
|
this.commandLineHistoryView = new CommandViews.CommandLineHistoryView({
|
||||||
el: $('#commandLineHistory'),
|
el: $('#commandLineHistory'),
|
||||||
collection: this.commandCollection
|
collection: this.commandCollection
|
||||||
});
|
});
|
||||||
|
@ -55,6 +47,7 @@ function UI() {
|
||||||
exports.getEvents = function() {
|
exports.getEvents = function() {
|
||||||
return events;
|
return events;
|
||||||
};
|
};
|
||||||
exports.ui = ui;
|
exports.getUI = function() {
|
||||||
exports.animationFactory = animationFactory;
|
return ui;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue