Fixes Issue #36

This commit is contained in:
Peter Cottle 2013-02-18 13:48:51 -08:00
parent c90444fe1e
commit 9cf91038c1
7 changed files with 48 additions and 18 deletions

View file

@ -593,6 +593,7 @@ var CanvasTerminalHolder = BaseView.extend({
};
this.render();
this.inDom = true;
if (options.additionalClass) {
this.$el.addClass(options.additionalClass);
@ -602,14 +603,16 @@ var CanvasTerminalHolder = BaseView.extend({
getAnimationTime: function() { return 700; },
onClick: function() {
this.slideOut();
this.die();
},
die: function() {
this.slideOut();
this.inDom = false;
setTimeout(_.bind(function() {
this.tearDown();
}, this));
}, this), this.getAnimationTime());
},
slideOut: function() {