some bugs

This commit is contained in:
Peter Cottle 2013-01-10 23:29:32 -08:00
parent 8086d2b2b1
commit 31aba06d45
10 changed files with 314 additions and 144 deletions

View file

@ -371,12 +371,8 @@ var ConfirmCancelTerminal = Backbone.View.extend({
// whenever they hit a button. make sure
// we close and pass that to our deferred
buttonDefer.promise
.then(_.bind(function() {
this.deferred.resolve();
}, this))
.fail(_.bind(function() {
this.deferred.reject();
}, this))
.then(this.deferred.resolve)
.fail(this.deferred.reject)
.done(_.bind(function() {
this.close();
}, this));