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
7714
build/bundle.js
7714
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
|
||||
*/
|
||||
var events = _.clone(Backbone.Events);
|
||||
var ui = null;
|
||||
var animationFactory = null;
|
||||
|
||||
/**
|
||||
* Static Classes
|
||||
*/
|
||||
animationFactory = new AnimationFactory();
|
||||
var mainVis = null;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
$(document).ready(function(){
|
||||
var Visuals = require('./visuals');
|
||||
|
||||
ui = new UI();
|
||||
mainVis = new Visualization({
|
||||
mainVis = new Visuals.Visualization({
|
||||
el: $('#canvasWrapper')[0]
|
||||
});
|
||||
|
||||
|
@ -33,18 +23,20 @@ $(document).ready(function(){
|
|||
});
|
||||
|
||||
function UI() {
|
||||
// static classes
|
||||
this.commandCollection = new CommandCollection();
|
||||
var Collections = require('./collections');
|
||||
var CommandViews = require('./commandViews');
|
||||
|
||||
this.commandBuffer = new CommandBuffer({
|
||||
this.commandCollection = new Collections.CommandCollection();
|
||||
|
||||
this.commandBuffer = new Collections.CommandBuffer({
|
||||
collection: this.commandCollection
|
||||
});
|
||||
|
||||
this.commandPromptView = new CommandPromptView({
|
||||
this.commandPromptView = new CommandViews.CommandPromptView({
|
||||
el: $('#commandLineBar'),
|
||||
collection: this.commandCollection
|
||||
});
|
||||
this.commandLineHistoryView = new CommandLineHistoryView({
|
||||
this.commandLineHistoryView = new CommandViews.CommandLineHistoryView({
|
||||
el: $('#commandLineHistory'),
|
||||
collection: this.commandCollection
|
||||
});
|
||||
|
@ -55,6 +47,7 @@ function UI() {
|
|||
exports.getEvents = function() {
|
||||
return events;
|
||||
};
|
||||
exports.ui = ui;
|
||||
exports.animationFactory = animationFactory;
|
||||
exports.getUI = function() {
|
||||
return ui;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue