event baton now working

This commit is contained in:
Peter Cottle 2013-01-01 14:04:30 -08:00
parent 17ac79d052
commit 0779bdeadb
6 changed files with 230 additions and 21 deletions

View file

@ -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;