[Gist] Resolves #371 fix gist loading bug

This commit is contained in:
Peter Cottle 2016-04-17 17:35:56 -07:00
parent 8638c31d82
commit 52d930d45a
2 changed files with 4 additions and 1 deletions

View file

@ -301,6 +301,7 @@ var Sandbox = Backbone.View.extend({
command.set('error', new Errors.GitError({ command.set('error', new Errors.GitError({
msg: 'Something went wrong ' + String(e) msg: 'Something went wrong ' + String(e)
})); }));
throw e;
} }
command.finishWith(deferred); command.finishWith(deferred);
}, },

View file

@ -171,7 +171,9 @@ var Visualization = Backbone.View.extend({
fadeTreeOut: function() { fadeTreeOut: function() {
this.shown = false; this.shown = false;
$(this.paper.canvas).animate({opacity: 0}, this.getAnimationTime()); if (this.paper && this.paper.canvas) {
$(this.paper.canvas).animate({opacity: 0}, this.getAnimationTime());
}
this.originToo('fadeTreeOut', arguments); this.originToo('fadeTreeOut', arguments);
}, },