mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 00:18:56 +02:00
event baton now working
This commit is contained in:
parent
17ac79d052
commit
0779bdeadb
6 changed files with 230 additions and 21 deletions
|
@ -5,8 +5,9 @@ var Backbone = require('backbone');
|
|||
* Globals
|
||||
*/
|
||||
var events = _.clone(Backbone.Events);
|
||||
var ui = null;
|
||||
var mainVis = null;
|
||||
var ui;
|
||||
var mainVis;
|
||||
var eventBaton;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -17,6 +18,8 @@ var init = function(){
|
|||
mainVis = new Visualization({
|
||||
el: $('#canvasWrapper')[0]
|
||||
});
|
||||
var EventBaton = require('../util/eventBaton').EventBaton;
|
||||
eventBaton = new EventBaton();
|
||||
|
||||
if (/\?demo/.test(window.location.href)) {
|
||||
setTimeout(function() {
|
||||
|
@ -78,5 +81,9 @@ exports.getMainVis = function() {
|
|||
return mainVis;
|
||||
};
|
||||
|
||||
exports.getEventBaton = function() {
|
||||
return eventBaton;
|
||||
};
|
||||
|
||||
exports.init = init;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue