OMG I AM RIGHT FUCKING HERE SO CLOSE

This commit is contained in:
Peter Cottle 2013-01-03 13:04:21 -08:00
parent 2e92e106d4
commit d400158781
10 changed files with 183 additions and 76 deletions

View file

@ -11,6 +11,8 @@ var GitVisuals = require('../visuals').GitVisuals;
var Visualization = Backbone.View.extend({
initialize: function(options) {
var _this = this;
this.customEvents = _.clone(Backbone.Events);
new Raphael(10, 10, 200, 200, function() {
// for some reason raphael calls this function with a predefined
@ -58,6 +60,8 @@ var Visualization = Backbone.View.extend({
this.setTreeOpacity(0);
this.fadeTreeIn();
this.customEvents.trigger('gitEngineReady');
},
setTreeOpacity: function(level) {